Search code examples
objective-ccocoa-touchcore-locationcllocation

How to measure the distance in meters between two CLLocations?


How can I get the distance in meters between two CLLocations? CLLocation doesn't provide any method to do it, it seeems.


Solution

  • CLLocationDistance distance = [aCLLocationA distanceFromLocation:aCLLocationB];
    // distance is a double representing the distance in meters