Mar 5, 2010

Get latitude and longitude from Google Maps

So say you need to get the latitude and longitude from a Google map to post in some app or what not. Sure there apps or you can read though the url query string and look for the ll= section but i found that putting this little javascript code in the url makes it just a lot easier to find it.

Now if you have Firefox installed and have a tab plugin that puts urls entered in the address bar to open in a new window this will not work, so just use another browser and it should work fine.

This can be useful for Geocaching, which according to Wikipedia is, “an outdoor activity in which the participants use a Global Positioning System (GPS) receiver or other navigational techniques to hide and seek containers (called "geocaches" or "caches") anywhere in the world. A typical cache is a small waterproof container (usually a tupperware or ammo box) containing a logbook. Larger containers can also contain items for trading, usually toys or trinkets of little value. Geocaching is most often described as a "game of high-tech hide and seek", sharing many aspects with orienteering, treasure-hunting, and waymarking.”

You could hide a cache, then using Google Maps and the javascript below, pinpoint the latitude and longitude of the cache. Kind of a neat trick right?

 

Paste into URL:

Know of any other cool Google Maps tricks? Let us know in the comments.

By FreedomChicken



Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | stopping spam