How to measure the distance in meters between two CLLocations?

Ilya  Lapan picture Ilya Lapan · May 3, 2012 · Viewed 25.9k times · Source

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

Answer

Jonas Schnelli picture Jonas Schnelli · May 3, 2012
CLLocationDistance distance = [aCLLocationA distanceFromLocation:aCLLocationB];
// distance is a double representing the distance in meters