Function

MKMapPointsPerMeterAtLatitude(_:)

Returns the number of map points that represent one meter at the given latitude.

Declaration

func MKMapPointsPerMeterAtLatitude(_ latitude: CLLocationDegrees) -> Double

Parameters

latitude

The latitude for which to return the value.

Return Value

The number of map points that span one meter.

Discussion

The number of map points per meter increases as the latitude approaches the poles.

See Also

Getting the Distance Between Points

func distance(to: MKMapPoint) -> CLLocationDistance

Returns the number of meters between two map points.

func MKMetersPerMapPointAtLatitude(CLLocationDegrees) -> CLLocationDistance

Returns the distance spanned by one map point at the specified latitude.