I’m trying to calculate the distance between two places user Core Location. I’ve found a few posts that state to use
-(CLLocationDistance)distanceFromLocation:(const CLLocation *)location
Found some other test code in the thread below:
I’m not sure how to put it all together, to get the result I want ?
Anyone any thoughts ?
Regards,
Stephen
If you have a location named
myLocationand want to find the distance from another location, say,restaurantLocation, then it seems you would do something likeThis will give you the distance, in meters, between the two.