Address Validation (beta) Stay organized with collections Save and categorize content based on your preferences.
AddressValidationclass
google.maps.addressValidation.AddressValidationclass
Notice: Available only in thev=beta channel.
Static class for accessing the AddressValidation APIs.
Access by callingconst {AddressValidation} = await google.maps.importLibrary("addressValidation").
SeeLibraries in the Maps JavaScript API.
Methods | |
|---|---|
| Notice: Available only in thev=beta channel. toJSON()Parameters: None Return Value: ObjectConverts the AddressValidation class to a JSON object with the same properties. |
AddressValidationRequestinterface
google.maps.addressValidation.AddressValidationRequestinterface
Notice: Available only in thev=beta channel.
Request interface for.AddressValidation.fetchAddressValidation
Addressclass
google.maps.addressValidation.Addressclass
Notice: Available only in thev=beta channel.
Details of the post-processed address. Post-processing includes correcting misspelled parts of the address, replacing incorrect parts, and inferring missing parts.
Access by callingconst {Address} = await google.maps.importLibrary("addressValidation").
SeeLibraries in the Maps JavaScript API.
AddressComponentclass
google.maps.addressValidation.AddressComponentclass
Notice: Available only in thev=beta channel.
Represents a single component of an address (ex. street name, city).
Access by callingconst {AddressComponent} = await google.maps.importLibrary("addressValidation").
SeeLibraries in the Maps JavaScript API.
AddressMetadataclass
google.maps.addressValidation.AddressMetadataclass
Notice: Available only in thev=beta channel.
The metadata for the address. AddressMetadata is not guaranteed to be fully populated for every address sent to the Address Validation API.
Access by callingconst {AddressMetadata} = await google.maps.importLibrary("addressValidation").
SeeLibraries in the Maps JavaScript API.
ConfirmationLevelconstants
google.maps.addressValidation.ConfirmationLevelconstants
Notice: Available only in thev=beta channel.
The different possible values indicating the level of certainty that the component is correct.
Access by callingconst {ConfirmationLevel} = await google.maps.importLibrary("addressValidation").
SeeLibraries in the Maps JavaScript API.
Geocodeclass
google.maps.addressValidation.Geocodeclass
Notice: Available only in thev=beta channel.
Contains information about the place the input was geocoded to.
Access by callingconst {Geocode} = await google.maps.importLibrary("addressValidation").
SeeLibraries in the Maps JavaScript API.
Granularityconstants
google.maps.addressValidation.Granularityconstants
Notice: Available only in thev=beta channel.
The various granularities that an address or a geocode can have. When used to indicate granularity for anaddress, these values indicate with how fine a granularity the address identifies a mailing destination. For example, an address such as "123 Main Street, Redwood City, CA, 94061" identifies aPREMISE while something like "Redwood City, CA, 94061" identifies aLOCALITY. However, if we are unable to find a geocode for "123 Main Street" in Redwood City, the geocode returned might be ofLOCALITY granularity even though the address is more granular.
Access by callingconst {Granularity} = await google.maps.importLibrary("addressValidation").
SeeLibraries in the Maps JavaScript API.
USPSAddressclass
google.maps.addressValidation.USPSAddressclass
Notice: Available only in thev=beta channel.
USPS representation of a US address.
Access by callingconst {USPSAddress} = await google.maps.importLibrary("addressValidation").
SeeLibraries in the Maps JavaScript API.
USPSDataclass
google.maps.addressValidation.USPSDataclass
Notice: Available only in thev=beta channel.
The USPS data for the address. USPSData is not guaranteed to be fully populated for every US or PR address sent to the Address Validation API. It's recommended to integrate the backup address fields in the response if you utilize uspsData as the primary part of the response.
Access by callingconst {USPSData} = await google.maps.importLibrary("addressValidation").
SeeLibraries in the Maps JavaScript API.
Verdictclass
google.maps.addressValidation.Verdictclass
Notice: Available only in thev=beta channel.
Represents the post-processed address for the supplied address.
Access by callingconst {Verdict} = await google.maps.importLibrary("addressValidation").
SeeLibraries in the Maps JavaScript API.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-06 UTC.