Location Bookmarklets

I have made a few custom bookmarklets that I bring to my internet experience. These allow me to perform a few tasks that I do on a regular basis in one step rather than copying, surfing to a new page, pasting. These are bookmarks for let me go from Google Maps to other sites that can give me a different view of that location information. Please share any other bookmarklets or sites..

Google Maps to Zoom Earth

javascript:(function(){{params=location.href.match(/www\.google\.[a-z]{2,4}(?:\.[a-z]{2})?\/maps\/.*@(-?\d{1,3}\.\d+),(-?\d{1,3}\.\d+),(\d+\.?\d{0,2})(a|m|z)/);if(params!=null){switch(params[4]){case"z":z=params[3];break;case"m":z=20-Math.log(params[3]/86.875)/Math.log(2);break;case"a":z=20-Math.log(params[3]/186.0278)/Math.log(2);break;}window.open("http://zoom.earth/#"%20+%20params[1]%20+%20","%20+%20params[2]+%20","+Math.round(z)+"z,sat")%20;}else{alert("GoogleMaps-%3E%20ZoomEarth\nonly");}}})()

Google Maps to Ingress

javascript:(function(){{params=location.href.match(/www\.google\.[a-z]{2,4}(?:\.[a-z]{2})?\/maps\/.*@(-?\d{1,3}\.\d+),(-?\d{1,3}\.\d+),(\d+\.?\d{0,2})(a|m|z)/);if(params!=null){switch(params[4]){case"z":z=params[3];break;case"m":z=20-Math.log(params[3]/86.875)/Math.log(2);break;case"a":z=20-Math.log(params[3]/186.0278)/Math.log(2);break;}window.open("https://intel.ingress.com/intel?ll=" + params[1] + "," + params[2]+ "&z="+Math.round(z)) ;}else{alert("GoogleMaps-> ZoomEarth\nonly");}}})()

Google Maps to Twitter

javascript:(function(){{params=location.href.match(/www\.google\.[a-z]{2,4}(?:\.[a-z]{2})?\/maps\/.*@(-?\d{1,3}\.\d+),(-?\d{1,3}\.\d+),(\d+\.?\d{0,2})(a|m|z)/);if(params!=null){switch(params[4]){case"z":z=params[3];break;case"m":z=20-Math.log(params[3]/86.875)/Math.log(2);break;case"a":z=20-Math.log(params[3]/186.0278)/Math.log(2);break;}window.open("https://x.com/search?q=geocode%3A" + params[1] + "," + params[2]+ ",3km"+"&src=typed_query&f=live") ;}else{alert("GoogleMaps-> ZoomEarth\nonly");}}})()

Google Maps to GeoHack

javascript:(function(){{params=location.href.match(/www\.google\.[a-z]{2,4}(?:\.[a-z]{2})?\/maps\/.*@(-?\d{1,3}\.\d+),(-?\d{1,3}\.\d+),(\d+\.?\d{0,2})(a|m|z)/);if(params!=null){switch("z"){case"z":z=params[3];latv=Math.abs(params[1]);lat1=Math.floor(latv);lat2 = Math.floor((latv - lat1 ) * 60);lat3=Math.floor((latv-lat1-lat2 / 60) * 3600);lonv=Math.abs(params[2]);lon1=Math.floor( lonv );lon2=Math.floor((lonv-lon1) * 60);lon3=Math.floor(( lonv-lon1-lon2 / 60) * 3600);lat4 = params[1] > 0 ? 'N' : 'S' ;lon4 = params[2] > 0 ? 'E' : 'W' ;break;}window.open("https://geohack.toolforge.org/geohack.php?params=" + lat1 + "_" + lat2 +"_"+lat3+"_"+lat4+"_" + lon1 + "_" + lon2 +"_"+lon3+"_"+lon4) ;}else{alert("GoogleMaps-> GeoHack\nonly");}}})()

To look at my other bookmarklets check out these:

Bookmarklets

Custom Bookmarklets for Power Surfing

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.