Chris Coyier

Get Real Lat/Long Coordinates from Google Maps

Step 1: Navigate to the place on Google Maps you want coordinates for and get that exact point in the middle of the map.

Step 2: Paste this into the address bar in your browser

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

Thanks to Alan Masic for sending me this tip a while back, very useful when you are needin’ some coordinates.

6 responses to “Get Real Lat/Long Coordinates from Google Maps”

  1. Ariyo says:

    Pretty cool.

  2. Tim Wright says:

    What would you use the coordinates for?

  3. Chris Coyier says:

    Like if you were using Google Maps on some page you were building, and wanted to put a bunch of pins on it. You need the coords to do that, but it Google Maps doesn’t show you coordinates anywhere on the page by default (as far as I know).

  4. Tim Wright says:

    Ah, ok. Yea, that’s very helpful then

  5. Anthony says:

    YES! Now I wont have to load that memory sucking google earth app just to get coords for demographics. This is awesome!

  6. jenny says:

    thanks for the code, its very elegant.

Leave a Reply

Your email address will not be published.