Skip to content

Instantly share code, notes, and snippets.

@ElijahLynn
Created October 16, 2014 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ElijahLynn/cb4f418e4869d0cbac6a to your computer and use it in GitHub Desktop.
Save ElijahLynn/cb4f418e4869d0cbac6a to your computer and use it in GitHub Desktop.
Google Maps Directions Chrome Search Engine
// http://jonthegeek.blogspot.be/2009/07/multi-parameter-firefox-keywords-and.html
javascript:
var s='%s';
url='http://maps.google.com/maps?saddr=%s&daddr=%s';
query='';
urlchunks=url.split('%s');
schunks=s.split(';');
for(i=0; i<schunks.length; i++)query+=urlchunks[i]+schunks[i];
location.replace(query);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment