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

# init(coordinates:count:)

Creates and returns a polygon object from the specified set of coordinates.

## Declaration

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

## Parameters

- `coords`: The array of coordinates defining the shape. The new object copies the data in this array.
- `count`: The number of items in the coords array.

## Return Value

Return Value A new polygon object.

## See Also

### Creating a polygon overlay

- [init(points:count:)](mapkit/mkpolygon/init(points:count:).md)
- [init(points:count:interiorPolygons:)](mapkit/mkpolygon/init(points:count:interiorpolygons:).md)
- [init(coordinates:count:interiorPolygons:)](mapkit/mkpolygon/init(coordinates:count:interiorpolygons:).md)
