If you want to retrieve the latitude and longitude of an address or a particular item you found with Google Maps, the problem is that Google Maps doesn’t display those informations in its interface.

To work around this problem, thanks to a function provided by Google, a tiny javascript code will help us.

javascript:void(prompt('',gApplication.getMap().getCenter()));

Just past it in the address bar of your browser, and then press “Enter”, and a convenient popup will display the coordinates of the center of the map.

Visualizzazione coordinate

The map can be centered where you need, selecting the appropriate item from the context menu, using the right mouse button over the exact point of which you need the coordinates.

Creazione segnalibroFinally, to keep handy this feature, you can create a new bookmark (or favorite Internet Explorer) and copy the value in the “Address” field.

If you want the data written with a comma as decimal separator, not the point, like to make a copy and paste into Excel, you can use this script, instead of the first version:

javascript:var strval=gApplication.getMap().getCenter().toString();
void(prompt('',strval.replace(/,/," -").replace(/\./,",").replace(/\./,",")));



Scrivi un commento