Subesh Pokhrel

Magento Developers Blog

How to Get Latitude and Longitude of a Place Using Google Maps

I was so frustrated during one project where I need to find out the geological latitude and longitude of the place, with the help of Google Maps. So I googled a lot and came up with a function function (overlay,point).On calling this function on mouse click event the latitude and longitude are returned as point.lat() for latitude and point.lng() for longitude. This is the source code just the javascript part. [UPDATE DEMO] [sourcecode lang=”javascript”]