<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKGeodesicPolyline",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKGeodesicPolyline"
  },
  "title" : "MKGeodesicPolyline"
}
-->

# MKGeodesicPolyline

An open polygon overlay consisting of line segments that follow the contours of the Earth to create the shortest path between the specified points.

```
class MKGeodesicPolyline
```

## Overview

A geodesic polyline contains a set of points that connect end-to-end in the order that you provide them. The first and last points don’t automatically connect to each other. When displaying on a two-dimensional map view, the line segment between any two points may appear curved.

## Topics

### Creating a geodesic polyline overlay

[`+  polylineWithPoints:count:`](/documentation/MapKit/MKGeodesicPolyline/init(points:count:))

Creates and returns a geodesic polyline using the specified map points.

[`+  polylineWithCoordinates:count:`](/documentation/MapKit/MKGeodesicPolyline/init(coordinates:count:))

Creates and returns a geodesic polyline using the specified coordinates.

## Relationships

### Inherits From

[`MKPolyline`](/documentation/MapKit/MKPolyline)

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`MKAnnotation`](/documentation/MapKit/MKAnnotation)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`MKGeoJSONObject`](/documentation/MapKit/MKGeoJSONObject)

[`MKOverlay`](/documentation/MapKit/MKOverlay)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)