Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 872
stkvtflw Avatar asked Sep 15 '15 08:09

stkvtflw


People also ask

What is the URL for Apple Maps?

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.

How do I get exact coordinates on Apple Maps?

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.

What is map URL?

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.

Can you make custom directions on Apple Maps?

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.


1 Answers

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

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

like image 149
iOSX Avatar answered Sep 18 '22 11:09

iOSX