RichAddressInput
A postal address.
This data model is based on the structure used by Google's libaddressinput library—so you can use it, or other libraries that use its data model and reference data, to accept input.
All fields can be blank, except for country which must
always be supplied.
This type is the input equivalent of RichAddressType; all
the fields here are semantically equivalent to fields
there, except where documented.
Input fields
Top-level administrative subdivision, e.g. US state, AU state/territory, NZ region, IT region, JP prefecture.
ISO 3166-1 alpha-2 code of the country this address belongs
to, e.g. AU, GB, JP, NZ.
Identifier used by the local postal service for this address, e.g. AU DPID, GB postcode + Delivery Point Suffix, US Zip-9 + Delivery Point.
This is the value that gets encoded in the barcode printed on the envelope by large-volume bulk mail providers.
UK dependent localities, or neighbourhoods or boroughs in some other locations.
City or town portion of an address, e.g. US city, AU suburb/town, NZ suburb and city/town, IT comune, UK post town.
A personal name.
The name of a business or organisation.
Postal code (ZIP code in the US).
Sorting code, e.g. FR CEDEX code. This field is not used in many countries.
At most one of this field and structured_street_address
can be supplied.
This is a divergence from RichAddressType.street_address,
where the field is always supplied; if
structured_street_address is present, it's generated from
that.
At most one of this field and street_address can be
supplied.
AU: Australia
The following keys may be present; all are optional. All keys have string values, and their meaning is the same as their aseXML counterparts. (Note that, unlike aseXML, all keys are provided at the top level, rather than being nested.)
flat_or_unit_typeflat_or_unit_numberfloor_or_level_typefloor_or_level_numberbuilding_or_property_namelocation_descriptorlot_numberhouse_number_1house_number_suffix_1house_number_2house_number_suffix_2street_namestreet_typestreet_suffixpostal_delivery_typepostal_delivery_number_prefixpostal_delivery_number_valuepostal_delivery_number_suffix
JP: Japan
The following keys may be present; all are optional. If keys are empty, they may be omitted from the response entirely.
chomebanchigoedabankana_building_namekanji_building_namebuilding_numberroom_numberaddress_codephysical_location_identifierkana_company_namekanji_company_name
NZ: New Zealand
The following keys may be present; all are optional. If keys are empty, they may be omitted from the response entirely.
flat_or_unit_typeflat_or_unit_numberfloor_or_level_typefloor_or_level_numberproperty_namebuilding_namehouse_number_1house_number_suffix_1house_number_2house_number_suffix_2street_prefixstreet_namestreet_typestreet_suffixrural_delivery_numbermailtownpostal_delivery_typepostal_delivery_locationpostal_delivery_number_prefixpostal_delivery_number_valuepostal_delivery_number_suffix
Example
{
"administrativeArea": "rock-paper-energy-money-catch",
"country": "catch-resource-guess-seem-drive",
"deliveryPointIdentifier": "37674241",
"dependentLocality": "responsibility-figure-blood-however-manage",
"locality": "beyond-cost-area-our-threat",
"name": "describe-alone-region-spring-who",
"organization": "party-garden-study-brother-realize",
"postalCode": "believe-hundred-manager-help-collection",
"sortingCode": "discuss-star-leg-oil-deep",
"streetAddress": "resource-form-order-travel-yes",
"structuredStreetAddress": "abc123" | 1 | 1.0 | true | ["abc123"] | AccountType
}