Patent ID: 8655375

Claim:
A method for determining locations to be stored in a location database, comprising: at a mobile device, periodically determining a present location of a user, the present location being one of an interesting location and an uninteresting location; comparing the present location of the user to a previous location of the user; determining whether the present location is within a specified distance of the previous location; in accordance with a determination that the present location is within the specified distance of the previous location: determining whether the user has been at the present location for a specified time period; and in accordance with a determination that the user has been at the present location for the specified time period, storing the present location in a location database; in accordance with a determination that the present location is beyond the specified distance of the previous location: determining whether the previous location that the user is leaving is an interesting location, wherein an interesting location includes locations that have been visited by one or more users of a plurality of users a specified number of times, wherein the plurality of users includes the user of the mobile device; in accordance with a determination that the previous location that the user is leaving is an interesting location, recording a route that the user travels from the previous location that the user is leaving to another interesting location; and in accordance with a determination that the previous location is an uninteresting location, not recording a route that the user travels from the previous location until an interesting location is reached.