---
title: "convert(_:toCoordinateFrom:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmapview/convert(_:tocoordinatefrom:)"
---

# convert(_:toCoordinateFrom:)

Converts a point in the specified view’s coordinate system to a map coordinate.

## Declaration

```swift
func convert(_ point: CGPoint, toCoordinateFrom view: UIView?) -> CLLocationCoordinate2D
```

```swift
func convert(_ point: CGPoint, toCoordinateFrom view: NSView?) -> CLLocationCoordinate2D
```

## Parameters

- `point`: The point you want to convert.
- `view`: The view that serves as the reference coordinate system for the point parameter.

## Return Value

Return Value The map coordinate at the specified point.

## See Also

### Converting map coordinates

- [convert(_:toPointTo:)](mapkit/mkmapview/convert(_:topointto:).md)
- [convert(_:toRectTo:)](mapkit/mkmapview/convert(_:torectto:).md)
- [convert(_:toRegionFrom:)](mapkit/mkmapview/convert(_:toregionfrom:).md)
