Skip to main content

Interface: AddressValidationResult

Properties​

address?​

optional address?: object

administrativeArea?​

optional administrativeArea?: string

The state/province etc.

formattedAddress?​

optional formattedAddress?: string

The full address, formatted in the standard format for the area.

locality?​

optional locality?: string

Suburb/city

postalCode?​

optional postalCode?: string

regionCode?​

optional regionCode?: string

Country code; AU, US, UK, etc.

sublocality?​

optional sublocality?: string


addressComplete?​

optional addressComplete?: boolean

Whether the resulting address is considered complete. An address is considered complete if no components were unexpected or missing.


components?​

optional components?: AddressComponent[]

The individual components of the address, and their associated validation information.


missingComponentTypes​

missingComponentTypes: string[]

Component types that were expected to be on the address, but were not present and could not be inferred by the validator. See https://developers.google.com/maps/documentation/places/web-service/legacy/supported_types#table2 for a list of possible types.