/Using_MKGeodesicPolyline

Small iOS example to measure distances between two locations connected by a MKGeodesicPolyline path.

Primary LanguageObjective-CMIT LicenseMIT

#MKGeodesicPolyline Example on how to draw a MKGeodesicPolyline path between two MKPointAnnotations and then calculating the distance between them.

MKGeodesicPolyline is used to render a direct straight path on a curved surface, such as Earth's. Here the "direct" path appears as an arc because of the curvature of the Earth. I chose MKGeodesicPolylines because it is more realistic than using a plain line between the points.

Here's more information about MKGeodesicPolylines: MKGeodesicPolyline Class Reference