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

# init(coordinates:count:interiorPolygons:)

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

## Declaration

```swift
convenience init(coordinates coords: UnsafePointer<CLLocationCoordinate2D>, count: Int, interiorPolygons: [MKPolygon]?)
```

## 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.
- `interiorPolygons`: An array of MKPolygon objects that define one or more cutout regions for the receiver’s polygon.

## 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:)](mapkit/mkpolygon/init(coordinates:count:).md)
