https://developer.apple.com/library/mac/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html
I'd like to create a url which will open the maps app on iphones and make it show the directions from the user's current location to the certain coordinates. Could you show an example of such url?
Apple Maps Link Apple's iOS URL handler is maps: but the preferred method is to use https://maps.apple.com/ with the location data. If you use this URL instead, it will open in the Apple Maps app on iOS/macOS or redirect to Google Maps on Windows/Android.
Get the coordinates of a placeTouch and hold an area of the map that isn't labeled to drop a red pin. At the bottom, tap Dropped pin to find the coordinates.
Introduction. Using Maps URLs, you can build a universal, cross-platform URL to launch Google Maps and perform searches, get directions and navigation, and display map views and panoramic images. The URL syntax is the same regardless of the platform in use. You don't need a Google API key to use Maps URLs.
Apple Maps lets you generate a custom route plan but allows a fixed number of additional stops. It initially sets your current location as the starting point that you can change at any point later. In addition, you would have a personalized guide to let you know about unknown places.
Just use latitude and longitude values separated by a comma as the destination address:
http://maps.apple.com/?daddr=37.331778,-122.031375
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With