---
title: "init(points:count:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/mkpolyline/init(points:count:)"
---

# init(points:count:)

Creates a polyline object from the specified set of map points.

## Declaration

```swift
convenience init(points: UnsafePointer<MKMapPoint>, count: Int)
```

## Parameters

- `points`: The array of map points defining the shape. The initializer copies the data in this array to the new object.
- `count`: The number of items in the points array.

## Return Value

Return Value A new polyline object.

## See Also

### Related Documentation

- [Location and Maps Programming Guide](apple-archive/documentation/UserExperience/Conceptual/LocationAwarenessPG/Introduction.md)

### Creating a polyline overlay

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