---
title: MKPolyline
framework: mapkit
role: symbol
role_heading: Class
path: mapkit/mkpolyline
---

# MKPolyline

An open polygon overlay consisting of one or more connected line segments.

## Declaration

```swift
class MKPolyline
```

## Overview

Overview The points connect end-to-end in the order that you provide them. The first and last points don’t automatically connect to each other.

## Topics

### Creating a polyline overlay

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

## Relationships

### Inherits From

- [MKMultiPoint](mapkit/mkmultipoint.md)

### Inherited By

- [MKGeodesicPolyline](mapkit/mkgeodesicpolyline.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

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