<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MapProxy/convert(_:to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI0A5ProxyV7convert_2toSo7CGPointVSgSo22CLLocationCoordinate2DV_xt0cD023CoordinateSpaceProtocolRzlF"
  },
  "title" : "convert(_:to:)"
}
-->

# convert(_:to:)

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

```
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

Returns a <doc://com.apple.documentation/documentation/CoreFoundation/CGPoint>; otherwise `nil`, if `coordinate` isn’t represented by a point in the [`MapReader`](/documentation/MapKit/MapReader) associated with a [`Map`](/documentation/MapKit/Map).

---

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)