Get Latitude and Longitude values from Google Maps

Home -> Internet -> Google

46674 views

From the computer of: qmchenry (334 recipes)
Created: Jun 08, 2007     Updated: Jun 10, 2007


1 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

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.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




1 Recipe comments: View comments

Get Latitude and Longitude values from Google Maps by OldProfessorBear



Related recipes:

  Google Maps Beta is an Amazing Tool
  Google Maps: Exclude Certain Search Results
  Easy Way to Embed and Customize Google Map without Using the API
  Google for directions
  Google: Finding Definitions of Words
  Google Calendar: Howto Import Outlook (CSV) or iCal Calendar Events
  Google as a Phonebook
  Google For FAA airplane registration and FCC Equipment IDs
  Calculator Google
  Google adds Weather

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.