Contents

distance(to:)

Returns the number of meters between two map points.

Declaration

func distance(to b: MKMapPoint) -> CLLocationDistance

Parameters

  • 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.

See Also

Getting the distance between points