Get latitude and longitude using map interface
Posted
by Dave Jarvis
on Stack Overflow
See other posts from Stack Overflow
or by Dave Jarvis
Published on 2010-05-17T21:03:46Z
Indexed on
2010/05/18
0:30 UTC
Read the original article
Hit count: 295
Problem
Allow website users to enter four latitude and longitude coordinates.
Proposed Solution
Integrate Google Maps API, and add a click event handler, similar to:
- http://itouchmap.com/latlong.html
- http://stackoverflow.com/questions/2770421/how-retrieve-latitude-and-longitude-via-google-maps-api
- http://marcgrabanski.com/article/jquery-google-maps-tutorial-basics
The data would populate into a hidden form field.
Questions
- What other ways (besides
<input type='text' ... />
) outside of Google's API are available to solve the problem? - How would you restrict the number of lat/long points the user can choose?
- Would using those coordinates violate Google's Terms of Service?
Thank you!
© Stack Overflow or respective owner