Subesh Pokhrel

Magento Developers Blog

Get Latitude and Longitude of User From Simple Javascript!

I am a big fan of Latitude and Longitude, as you all might know, I have other post related to Latitude and Longitude and Google Maps. I came across one of the greatest feature of Mozilla Firefox 3.5, and that was to get the latitude and Longitude of user using simple Javascript. No API to use, No query to Google or anything. Here’s the code. [source language=”javascript”] [/source] Remember this only works on Mozilla Firefox 3.5. I’ll later come up with using this method to plot user on Google Maps, So follow on !