Get latitude and longitude using map interface
- by Dave Jarvis
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!