Recently, one of our users asked us how to add autocomplete for address fields in WordPress forms.
Autocomplete allows users to quickly select address from suggestions generated in realtime as they type.
In this article, we will show you how to add autocomplete for address fields in WordPress using Google Places API.
If you don’t like the video or need more instructions, then continue reading.
First thing you need to do is install and activate the Address Autocomplete Using Google Place Api plugin.
For more details, see our step by step guide on how to install a WordPress plugin.
You will be asked to enter Google Places API Key.
This API key allows your website to connect with Google Maps and retrieve autocomplete suggestions from their database in realtime.
Head over to Google Developer Console website and create a new project.
Create a new project
A popup will appear asking you to provide a name for your project. Use a name that will help you later identify the project and then click on the create button.
The popup will disappear, wait for a few seconds and you will be automatically redirected to your new project.
Now you will see the list of popular Google APIs that you can enable for your project. You need to locate and click on ‘Google Places API Web Service’.