Get Latitude and Longitude values from Google Maps

Friday, November 14, 2008

Google Maps do not display latitude and longitude values, but there is an easy trick to get these numbers. This technique will provide the latitude and longitude coordinates of the center of the map displayed by Google Maps.

Looking up an address in Google Maps will center the map on that address if it was found. Because this trick provides the latitude and longitude of the center of the map, moving the map around manually after that will change the center position and this technique will not work accurately. When the location you want is in the center of the map, copy and paste this code into the location bar of your browser and press enter:

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

A little dialog box will pop up displaying the coordinates which can be copied and pasted for use elsewhere. This code can be bookmarked and then used in the future by selecting the bookmark.

0 comments:

About This Blog

This is a news blog about Filipinos' life in New York especially in the Queens borough. Also, a weblog of technology news, computer tips & tricks and some informative local news. This site was originally a photoblog of a group of New York based Filipino Engineers and Architects.

Repapips

Repapips
Filipino Engineers & Architects in New York

  © Free Blogger Templates Columnus by Ourblogtemplates.com 2008

Back to TOP