distance(to:)
Returns the number of meters between two map points.
Declaration
func distance(to b: MKMapPoint) -> CLLocationDistanceParameters
- b:
The second map point.
Return Value
The number of meters between the specified map points.
Discussion
This distance reflects the actual distance between the two points on the surface of the globe, taking into account the curvature of the Earth.