<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKGeodesicPolyline/init(points:count:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKGeodesicPolyline(cm)polylineWithPoints:count:"
  },
  "title" : "init(points:count:)"
}
-->

# init(points:count:)

Creates and returns a geodesic polyline using the specified map points.

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

## Parameters

`points`

A pointer to the array of map points that define the path.

`count`

The number of items in the `points` array.

## Return Value

A new geodesic polyline object.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)