This topic is locked

Auto Complete Address form using Google Address API

11/21/2016 4:46:31 AM
PHPRunner General questions
need2sleep authorDevClub member

I was wondering if anyone has already implemented this feature into their project. I'm looking for inspiration and suggestions on the best way to use this code. I have the standard address fields in the database and would like the street number, address, city, province and postal code to be automatically populated from the auto-complete search linked to the Google database.
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform

This example captures selected address components from the Google Places database into an address form. The selection of address components in this example is typical. You may need to adjust it to align with postal addresses of each country. This example displays the locality address component from the database. This often represents the city. However, in UK and Sweden the correct component is postal_town, while the correct component in Japan is different across prefectures. Brooklyn and other parts of New York City do not use the city as part of the address. They use sublocality_level_1 instead.





Thank you

Admin 11/24/2016

I'm sure this is possible but have no on-hands experience with this API.