Getting latitude and longitude from Google Maps
Here's a hack that will allow you to get the latitude and longitude of a location from Google Maps. Just go to Google Maps and find the location that you want the lat/long for. Make sure this location is centered in the map. Once it is, copy the following code into the address bar (the place where the http://maps.google.com URL is listed) and hit Enter:
When you do this, a javascript dialog window will open and it will show the latitude and longitude at the center of the map.
javascript:void(prompt('',gApplication.getMap().getCenter()));
When you do this, a javascript dialog window will open and it will show the latitude and longitude at the center of the map.
| Rating: | 100% positive, 8 total Votes |
| Categories: | maps google hack javascript |
| Added: | on Apr 25, 2008 at 10:01 am |
| Added By: | an anonymous user |
| Searches: | map google hack javascript latitude |

