[Google Map] Web Link to show direction from user’s current location

Nowadays Google Maps can show direction from user’s current location to any specified place easily. Here is how to accomplish that in link on the web (<a>)

Simply putting My+Location in the link URL in this format:

https://maps.google.com/?saddr=My%20Location&daddr=myDestinationAddress

Note that Current+Location works as well, but stackoverflow’s member said that it works only on English OS users.

For examples, the URL to go to specified lat, long destination is:

https://maps.google.com/?saddr=My%20Location&daddr=53.9187068,27.5862874

You can change daddr=xxx to address as well (e.g. Bourke+Street)

Reference: http://stackoverflow.com/questions/15042283/current-location-google-maps-link-to-directions


Posted

in

, , ,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *