---
title: "getMapItems(completionHandler:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkgeocodingrequest/getmapitems(completionhandler:)"
---

# getMapItems(completionHandler:)

Returns the map items relevant to the geocoded location.

## Declaration

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

```swift
var mapItems: [MKMapItem] { get async throws }
```

## See Also

### Getting information about the geocoder

- [addressString](mapkit/mkgeocodingrequest/addressstring.md)
- [preferredLocale](mapkit/mkgeocodingrequest/preferredlocale.md)
- [region](mapkit/mkgeocodingrequest/region.md)
