How to get secondary addresses
SecondaryAddresses allows you to retrieve all secondary addresses that
are under a main address. Additionally, Geocode also returns secondary
units, if any are present within the QueryText.
A result item with a place type of InferredSecondaryAddress may be returned if
there is parsed query support, ParsedQuery.Address.SecondaryAddressComponents, for that country.
InferredSecondaryAddress results are returned based on provided data in the query.
Potential use cases
-
Address form completion: To select a more accurate secondary address, which also includes more accurate positional information.
-
Deliveries: For countries that lack secondary address coverage, this information can help inform deliveries by including all provided unit information.
Examples
Note
Coverage for Address.SecondaryAddressComponents is
available in the following countries:
AUS, CAN, NZL, USA, PRI
Coverage for
ParsedQuery.Address.SecondaryAddressComponents is
available in the following countries:
AUS, AUT, BRA, CAN, ESP, FRA, GBR, HKG, IDN, IND, NZL, TUR, TWN, USA
Coverage for this functionality is available in the following countries: AUS, AUT, BRA, CAN, ESP, FRA, GBR, IDN, IND, NZL, TUR, TWN, USA.