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

# init(coordinates:count:)

Creates and returns a geodesic polyline using the specified coordinates.

## Declaration

```swift
convenience init(coordinates coords: UnsafePointer<CLLocationCoordinate2D>, count: Int)
```

## Parameters

- `coords`: A pointer to the array of coordinates that define the path.
- `count`: The number of items in the coords array.

## Return Value

Return Value A new geodesic polyline object.

## See Also

### Creating a geodesic polyline overlay

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