Separate names with a comma.
Discussion in 'iPhone/iPad Programming' started by Nnavick, Apr 11, 2011.
How can I find the distance between my current location and a dropped pin?
Thank you !!
Make a math function that calculates the difference between the latitude/longitudes..
Do you now what is the function?
A quick Google search gives us this: http://www.movable-type.co.uk/scripts/latlong.html
Note the suggestion was that you write this function yourself...
I found at the core location a function that does it
CLLocationDistance distance = [newLocation distanceFromLocation:Newloc]/1000;