A method, system, and computer readable medium for tracking mileage. The method includes obtaining global positions of a mobile device and timestamps corresponding to the global positions, and detecting, based on the global positions and the timestamps, a completed trip having global positions and timestamps. The global positions include an origin and a destination. The method further includes categorizing, from location categories, the origin into an origin location category, categorizing, from location categories, the destination into a destination location category, and categorizing, based on the origin location category and the destination location category, the completed trip into a completed trip category from trip categories. The method further includes calculating mileage based on the global positions of the completed trip, and storing, for the completed trip, the mileage and the completed trip category.
展开▼