---
title: "getMapItem(completionHandler:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmapitemrequest/getmapitem(completionhandler:)"
---

# getMapItem(completionHandler:)

Requests a map item and calls the provided completion handler.

## Declaration

```swift
func getMapItem(completionHandler: @escaping @MainActor @Sendable (MKMapItem?, (any Error)?) -> Void)
```

```swift
var mapItem: MKMapItem { get async throws }
```

## Parameters

- `completionHandler`: A completion handler the framework calls to indicate the success or failure of the map item request.

## See Also

### Starting and stopping requests

- [cancel()](mapkit/mkmapitemrequest/cancel().md)
