<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.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/MKMultiPoint/getCoordinates(_:range:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKMultiPoint(im)getCoordinates:range:"
  },
  "title" : "getCoordinates(_:range:)"
}
-->

# getCoordinates(_:range:)

Retrieves one or more points associated with the shape and converts them to coordinate values.

```
func getCoordinates(_ coords: UnsafeMutablePointer<CLLocationCoordinate2D>, range: NSRange)
```

## Parameters

`coords`

On input, provide a C array of structures large enough to hold the desired number of coordinates. On output, this structure contains the requested coordinate data.

`range`

The range of points you want. The `location` field indicates the first point you’re requesting, with `0` being the first point, `1` being the second point, and so on. The `length` field indicates the number of points you want. The array in `coords` needs to be large enough to accommodate the number of requested coordinates.

## Discussion

This method converts the map points into coordinates before returning them to you. If you want to specify the value of each point as a map point, you can access the values directly using the [`points()`](/documentation/MapKit/MKMultiPoint/points()) method.

---

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)