NetManiac

Witold Rugowski on web20 wave with Ruby on Rails

Google Maps – quick tip for finding coordinates

Posted on September 11, 2007 - Filed Under Google Maps, JavaScript

Sometimes I need to find out longitude and latitude of certain points. I use Google Maps to find place, and… Until last weekend I have clicked link to this page and looked in URL. Usually there was lat and lng. But this was good enough when I need find it for one or two places.

This weekend we were writing application for Rails Rumble. And I have developed much more efficient way. Find Your place on Google Maps, center page and in Firebug console write:

gApplication.getMap().getCenter()

It will dump returned JS object into string. First number it is latitude and second one – longitude.

Of course You need Firefox with Firebug installed.

Popularity: 4% [?]

Hits for this post: 3456

Similar Posts

Comments

One Response to “Google Maps – quick tip for finding coordinates”

  1. Online-Bookmarks on June 3rd, 2010 17:19

    Kramer auto Pingback[...] Google Maps – quick tip for finding coordinates : Witold Rugowski aka [...]

Leave a Reply