insert location info into Google Maps search box

By Koumei_S Last update Jan 26, 2009 — Installed 1,985 times.


Script Summary: inserts lat/long info into Google Maps by double-clicking at search box.

Version: 1.3

bookmarklet:

javascript:(function(){if(document.domain.match(/(maps|www)\.google\.co(m|\.jp)/)){var%20o=document.getElementById('q_d');var%20input=function(){var%20loc=document.getElementById('link').href;this.value=loc.match(/[\?&]ll=([\d\.\-]+,[\d\.\-]+)/)?loc.match(/[\?&]ll=([\d\.\-]+,[\d\.\-]+)/)[1]:decodeURI(loc.match(/[\?&]q=(.*?)[&$]/)[1]);};o.addEventListener('dblclick',input,false);}})();