---
title: "location(atPointIndex:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmultipoint/location(atpointindex:)"
---

# location(atPointIndex:)

Translates a point index into a unit distance along the shape.

## Declaration

```swift
func location(atPointIndex index: Int) -> CGFloat
```

## Parameters

- `index`: The index of the map point associated with the shape.

## Return Value

Return Value A CGFloat value that indicates the unit distance along the shape.

## See Also

### Accessing the points in the shape

- [points()](mapkit/mkmultipoint/points().md)
- [pointCount](mapkit/mkmultipoint/pointcount.md)
- [locations(at:)](mapkit/mkmultipoint/locations(at:).md)
