Launch Apple Maps app with a destination and "No Highways" automatically selected?

Hi, I am trying to build a button in our app that when pressed, will launch users to their native Maps app with their destination pre-entered and "No Highways" automatically selected.


Currently I am doing this using the Maps URL "http://maps.apple.com/?daddr="+destinationCoords+"&dirflg=d", where "destinationCoords" is the coordinates of the user's selected destination, like "33,-122".


The problem is, the Maps URL scheme does not seem to support a parameter for avoiding highways, https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html


I tried looking at MKMapItem's openMaps and openInMaps but those don't seem to support launching Maps with No Highways automatically selected either.


I had no problem doing this with Google Maps. Is there any way at all to do the same with Apple Maps?


Thanks,

Terry

Replies

Not all the Map app settings are surfaced in the URL scheme so please file a bug report asking for this feature. I know it's not what you're looking for but does dirflg=w give you an appoximation of what you want to see?


-M

No, sorry, walking directions won't do. Thanks for your reply though! Do I go here https://developer.apple.com/bug-reporting/ to file a bug report?

Yes please! – M