iosmapsapple-maps

Example of apple maps url to find the directions to certain coordinates


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?


Solution

  • Just use latitude and longitude values separated by a comma as the destination address:

    http://maps.apple.com/?daddr=37.331778,-122.031375