Function

MKMetersPerMapPointAtLatitude(_:)

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

Declaration

func MKMetersPerMapPointAtLatitude(_ latitude: CLLocationDegrees) -> CLLocationDistance

Parameters

latitude

The latitude for which to return the value.

Return Value

The distance (in meters) spanned by a single map point.

Discussion

The distance between map points decreases as the latitude approaches the poles. This relationship parallels the relationship between longitudinal coordinates at different latitudes.

See Also

Getting the Distance Between Points

func distance(to: MKMapPoint) -> CLLocationDistance

Returns the number of meters between two map points.

func MKMapPointsPerMeterAtLatitude(CLLocationDegrees) -> Double

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