Follow these steps to get set up with Address Validation in Maps JavaScript API.
Get an API key and enable the Maps JavaScript API
Before using Address Validation in Maps JavaScript API, you need a Cloud project with a billing account, and both the Maps JavaScript API and Address Validation APIenabled. To learn more, see Set up your Google Cloud project.
Enable the Maps JavaScript API
Enable the Address Validation API
Update your map initialization code
- Load the Address Validation in Maps JavaScript API library from within an - asyncfunction when needed:- const {AddressValidation} = await google.maps.importLibrary('addressValidation');