How to obtain, save and calculate distance between coordinates with CoreLocation [duplicate]
Possible Duplicate:
GPS coordinates in degrees to calculate distances
Hi friends I am new iPhone developer.
I am working with the iOS GPS to find the distance between my current location and a previous location.
开发者_开发问答First of all I don't know how to find my current location. Please tell me.
I have a method that is called to find my current location and previous location. I can only get the current location from CoreLocation - how can I get hold of my previous location.
I am fully confused please help me.
Check out this basic tutorial on using CoreLocation iOS Core Location GPS Tutorial . It explains in simple terms how to obtain a location, save it and do simple calculations with other locations.
To calculate the distance between to coordinates use the distanceFromLocation:
method.
精彩评论