**European Economic Area (EEA) developers**

> [!NOTE]
> If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](https://developers.google.com/maps/comms/eea/faq.md.txt).

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](https://developers.google.com/maps/documentation/javascript/cloud-setup).

[Get an API key](https://developers.google.com/maps/documentation/javascript/get-api-key.md.txt)


[Enable the Maps JavaScript API](https://console.cloud.google.com/apis/library/maps-backend.googleapis.com)


[Enable the Address Validation API](https://console.cloud.google.com/apis/library/addressvalidation.googleapis.com)

## Update your map initialization code

1. [Load the Maps JavaScript API](https://developers.google.com/maps/documentation/javascript/load-maps-js-api.md.txt).

2. Load the Address Validation in Maps JavaScript API library from within an
   `async` function when needed:

   ```javascript
   const {AddressValidation} = await google.maps.importLibrary('addressValidation');
   ```

## Next steps

[Validate an address](https://developers.google.com/maps/documentation/javascript/address-validation/validate-address.md.txt)