Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want a link on my site which visitors can use to get directions to my location. Is it possible to create a link to a Google Maps directions page, where one end of the directions (the destination) is pre-filled?

share|improve this question
up vote 6 down vote accepted

Set the origin (Place A) as "current location" and the destination (Place B) as your desired address. Then save that link.

For example:

A current location
B Sydney Opera House, Sydney Opera House, Bennelong Point, Sydney NSW 2000, Australia

The URL will look something like https://www.google.com/maps/dir/-33.8592754,151.2096187/Sydney+Opera+House,+Sydney+Opera+House,+Bennelong+Point,+Sydney+NSW+2000,+Australia/@-33.8592754,151.2096187,9z (there may be more characters, but it will start similarly).

Then change the URL to something else like this:


So you'll replace the first set of numbers seen (longitude and latitude) with the string current+location and copy all from https to just before @.

Whenever someone clicks on that link it will start from where they are located, no matter where that is, and show directions to your designated location.

share|improve this answer
Nice workaround, thanks! – eykanal Jan 15 '13 at 16:15
Nice, but what if it changes (as it already did). Some kind of rule for generating the link would be better. – jayarjo Nov 5 '13 at 7:58

protected by Community Mar 6 '14 at 11:08

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.