I am creating a map application in Objective-C, for iPhone. I know how to get the current location of the user, and the destination location. As a user travels, his coordinates (latitude and longitude) change.
How can I save the latitude and longitude of the user in an SQLite database every five minutes as the user travels?
You can use a timer and set time interval to 300, as shown below
Make one function which is called every 5 mins and save it to database.
NOTE: Here 300 is in seconds