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

# convert(_:from:)

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

## Declaration

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

## Parameters

- `point`: The point to convert.
- `space`: The reference coordinate space for point.

## Return Value

Return Value Returns a CLLocationCoordinate2D; or nil, if the specified point isn’t represented by a point in the MapReader associated with a Map.

## See Also

### Converting between coordinate spaces

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