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: 273

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:

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

Related posts about google-maps

Related posts about user-interface