Returns the distance (measured in meters) from the receiver’s location to the specified location.
- iOS 3.2+
- macOS 10.6+
- tvOS 9.0+
- watchOS 2.0+
- Core Location
The other location.
The distance (in meters) between the two locations.
This method measures the distance between the two locations by tracing a line between them that follows the curvature of the Earth. The resulting arc is a smooth curve and does not take into account specific altitude changes between the two locations.