Great tip from J-School multimedia instructor Jeremy Rue:
“If you ever want to find the longitude and latitude of a location on Google Maps, simply center the map to the location you want to find. You can even search an address and this will work. Then paste in this code into the URL field:
javascript:alert(window.gApplication.getMap().getCenter());
A pop-up box will appear with the longitude and latitude.”
Music: Os Mutantes :: A Minha Menina
Timely! I was literally scratching my head trying to understand how to do this, when I saw this post.
Thanks!
Sure would be nice if they’d put a button or link in the UI for this. Even tucked away in the Advanced section or something. I can see it being useful for lots of things, especially with GPSs becoming so common.
Thanks for posting this, very helpful! You’re right – it would be great if Google put a button on their page to do this for you…
Scott
Great idea!
If want to copy the Lat/Long it would be better to do javascript:prompt(‘Lat/Long’,window.gApplication.getMap().getCenter());
Not sure how to apply this code. Kindly clarify this part:
window.gApplication.getMap().getCenter()
Where to get window.gApplication ?