How to get the lat and lng from Google MAPS

Hi everyone,

I have two form fields and google maps displayed. When click in some location on the map, a want to fill these fields, is this possible?

what the best way?

tnks a lot!

Use a click event handler in the Google Maps API It returns a location which contains latitude and longitude. See more at Google Maps Platform Documentation  |  Maps JavaScript API  |  Google Developers

Andrew Timberlake http://ramblingsonrails.com

http://MyMvelope.com - The SIMPLE way to manage your savings