<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKMapItem/openInMaps(launchOptions:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKMapItem(im)openInMapsWithLaunchOptions:"
  },
  "title" : "openInMaps(launchOptions:)"
}
-->

# openInMaps(launchOptions:)

Opens the Maps app and displays the map item.

```
func openInMaps(launchOptions: [String : Any]? = nil) -> Bool
```

## Parameters

`launchOptions`

Additional information that the Maps app can use to configure the map display. For example, you can use the launch options to specify the visible map region and the map type. For a list of keys you can put into this dictionary, see [Launch options dictionary keys](/documentation/MapKit/launch-options-dictionary-keys).

    This parameter may be     `nil`    .

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the Maps app successfully opens the map item, or <doc://com.apple.documentation/documentation/Swift/false> if there’s an error.

## Discussion

You use this method to pass the map item to the Maps app. If your map item contains descriptive information about the location (such as a name or URL), the Maps app displays that information at the specified coordinate.

If you specify the [`MKLaunchOptionsDirectionsModeKey`](/documentation/MapKit/MKLaunchOptionsDirectionsModeKey) option in the `launchOptions` dictionary, the Maps app interprets that as an attempt to map from the user’s current location to the location that the map item specifies.

> Note:
> This is a blocking call and the system suspends interaction with your app until the Maps app finishes launching.

If you don’t include the [`MKLaunchOptionsMapCenterKey`](/documentation/MapKit/MKLaunchOptionsMapCenterKey) and [`MKLaunchOptionsMapSpanKey`](/documentation/MapKit/MKLaunchOptionsMapSpanKey) keys in your `launchOptions` dictionary, the Maps app constructs a region around the map item. It uses that region to set the visible portion of the 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)