---
title: "convert(_:to:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mapproxy/convert(_:to:)"
---

# convert(_:to:)

Converts a map coordinate to a point in the specified coordinate space.

## Declaration

```swift
func convert(_ coordinate: CLLocationCoordinate2D, to space: some CoordinateSpaceProtocol) -> CGPoint?
```

## Parameters

- `coordinate`: The map coordinate to find the corresponding point for.
- `space`: The reference coordinate space for the returned point.

## Return Value

Return Value Returns a CGPoint; otherwise nil, if coordinate isn’t represented by a point in the MapReader associated with a Map.

## See Also

### Converting between coordinate spaces

- [convert(_:from:)](mapkit/mapproxy/convert(_:from:).md)
