Skip to content Skip to sidebar Skip to footer

Plot Button To Add Latitude And Longitude To Input Fields? Geocode

I have a form and one of my inputs lets my user input their office location (address) From this address I want to plot a google map on their profile. I would like them to supply th

Solution 1:

There are basically two ways how you can approach this problem:

  1. Let the user enter an address and find out the geocoordinates yourself. See the description of the Geocoding API for a full feature set.

  2. Or you draw a draggable marker on the map and let the user drag the marker to their location. You can find a good explanation in this posting.

  3. Or you combine the two apporaches. Let the user enter their address, and if the geocoding result is somehow not sufficient, they may drag the marker to the correct location. Here is an example by Google that exactly does this.

Post a Comment for "Plot Button To Add Latitude And Longitude To Input Fields? Geocode"