---
title: "init(mapItem:)"
framework: eventkit
role: symbol
role_heading: Initializer
path: "eventkit/ekstructuredlocation/init(mapitem:)"
---

# init(mapItem:)

Creates a new structured location with the specified map item.

## Declaration

```swift
convenience init(mapItem: MKMapItem)
```

## Parameters

- `mapItem`: The doc://com.apple.documentation/documentation/MapKit/MKMapItem object that represents the location.

## See Also

### Creating Structured Locations

- [init(title:)](eventkit/ekstructuredlocation/init(title:).md)
