How to get the lat and lng from Google MAPS

1 view
Skip to first unread message

flaubert

unread,
Aug 17, 2009, 9:55:08 AM8/17/09
to Ruby on Rails: Talk
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!

Andrew Timberlake

unread,
Aug 17, 2009, 10:03:42 AM8/17/09
to rubyonra...@googlegroups.com

Use a click event handler in the Google Maps API
It returns a location which contains latitude and longitude.
See more at http://code.google.com/apis/maps/documentation/events.html

Andrew Timberlake
http://ramblingsonrails.com

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

Reply all
Reply to author
Forward
0 new messages