---
title: MKGeodesicPolyline
framework: mapkit
role: symbol
role_heading: Class
path: mapkit/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.

## Declaration

```swift
class MKGeodesicPolyline
```

## Overview

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

- [init(points:count:)](mapkit/mkgeodesicpolyline/init(points:count:).md)
- [init(coordinates:count:)](mapkit/mkgeodesicpolyline/init(coordinates:count:).md)

## Relationships

### Inherits From

- [MKPolyline](mapkit/mkpolyline.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [MKAnnotation](mapkit/mkannotation.md)
- [MKGeoJSONObject](mapkit/mkgeojsonobject.md)
- [MKOverlay](mapkit/mkoverlay.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Multiple segment lines

- [MKPolyline](mapkit/mkpolyline.md)
- [MKMultiPolyline](mapkit/mkmultipolyline.md)
- [MKPolylineRenderer](mapkit/mkpolylinerenderer.md)
- [MKMultiPolylineRenderer](mapkit/mkmultipolylinerenderer.md)
- [MKGradientPolylineRenderer](mapkit/mkgradientpolylinerenderer.md)
