Jump to content

autocomplete address - reverse geocoding > country & state data


n00bster

Recommended Posts

hi Alejandro.

 

right now i have the "autocomplete address" feature not in use because the address fields are single select fields.

in this post is also a "how to" to get from single to text fields without lose existing data:

https://forum.jreviews.com/topic/28395-new-geomaps-address-autofill-feature-released-and-more/

 

this feature from google works perfect when i add a existing address. but i have mostly outdoor spots without addresses but gpx data. there for on my website we are working with set the pin on map manually or fill in the GPX data (lat & lon).

i tested this with the autofill feature and it does take over the decimal lat & lon numbers to the internal lat & lon fields.

but what i'm missing are the "country" and "state" data here.

 

i researched the google development site about the autofill feature and found this information of reverse geocoding:

https://developers.google.com/maps/documentation/javascript/geocoding#ReverseGeocoding

it looks like that it is possible to get data like "country" and "state" also for the reverse  geocoding. could you have a look that to may get this also to work Alejandro?

 

 

Link to comment
×
×
  • Create New...