Place Card API - SwiftUI

Hello everyone, I have a question regarding the Place Card API

I'm using .mapFeatureSelectionAccessory(.automatic) to get information about a POI on the Map

The trouble I have is that it forces me to use Apple Maps for directions, which isn't ideal for my use case

For example, I support commercial navigation, including large units such as trucks, and I have my own routing engine for this

Is there a way to handle the directions via my routing engine instead? Is there a modifier I'm missing, or should I suggest this as an enhancement?

Thanks, great work MapKit team

.mapFeatureSelectionAccessory(.automatic) shows a Place Card with a fixed directions action that always routes through Apple Maps. There's no modifier today that lets you intercept that tap or substitute your own routing engine.

However you can register your app as a routing app so Apple Maps and other apps can hand off directions requests to your app. See Configuring Maps support.

You can also file an enhancement request using Feedback Assistant with your use case. If you do file the feedback report, please post the Feedback ID number here for the record.

Place Card API - SwiftUI
 
 
Q