lcollong
FabriKant d'applications web
Hi,
The field element has an option "geocomplete" using Google Maps API to autocomplete the address while you are typing it. It works great but the result is a google formatted field.
The result from Google is json organized as "country", "route", "city", "zip code", etc.... I need to fill individual fields with the results of the API return selected by the user. Could it be done using JS to catch the data and fill the right fields ? Is there a way to use the already existing setFields function ? As per this example : https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
Did anyone already achieve such a result ?
Any help welcome.
The field element has an option "geocomplete" using Google Maps API to autocomplete the address while you are typing it. It works great but the result is a google formatted field.
The result from Google is json organized as "country", "route", "city", "zip code", etc.... I need to fill individual fields with the results of the API return selected by the user. Could it be done using JS to catch the data and fill the right fields ? Is there a way to use the already existing setFields function ? As per this example : https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
Did anyone already achieve such a result ?
Any help welcome.