Skip to main content

New Zealand address metadata

The address autocomplete service returns useful information about each address. On selection of an address, the widget can be configured to collect the information documented in the response spec below.

Metadata response specification

Field NameTypeDescriptionExample
aStringCanonical address as supplied by Land Information New Zealand or NZ Post.Unit 2, 1703A State Highway 1, Warkworth 0983
postalStringAssociated postal address when supplied by NZ Post. Field will be omitted if this address is not delivered to by NZ Post. FAQ: postal address vs 'a' address.Unit 2, 1703A State Highway 1, RD 3, Warkworth 0983
building_nameStringHolds the building or property name.Miban Building
unit_typeStringDescribes the category of a sub-dwelling.Flat
unit_identifierStringIdentifies a specific sub dwelling. Can be alpha, number or a combination.1
floorStringThe level number and level type in a multi-story building.Level 19
numberStringThe street number of the address. Also populated with the box number for PO Box type addresses.1703
alphaStringHolds the alpha component of a street number. In the address 1B High Street, B is the alpha.B
streetStringHolds the full name of the street as supplied by Land Information New Zealand or NZ Post. Note: The street attribute also includes the Street Type.Pūrākaunui Road
street_nameStringHolds the name of the street as supplied by Land Information New Zealand or NZ Post.Pūrākaunui
post_streetStringHolds the street name and type from NZ Post, it will be omitted if the address is not delivered to by NZ Post.Purakaunui Road
post_street_nameStringHolds the street name from NZ Post, it will be omitted if the address is not delivered to by NZ Post.Purakaunui
street_typeStringThe type of street.Avenue
street_suffixStringThe suffix of the street. Typically contains a compass direction.North
suburbStringThe suburb or locality of the address as assigned by Land Information New Zealand.Warkworth
cityStringThe city, town or locality name as assigned by Land Information New Zealand.Warkworth
box_typeStringThe type of PO Box/CMB/Private Bag/Counter Delivery.PO Box
lobby_nameStringThe name of the NZ Post outlet or Agency outlet where the PO Box, Private Bag or Counter Delivery is located.Fendalton
rd_numberStringThe rural delivery number assigned by NZ Post to a rural address.4
post_suburbStringName of the suburb when supplied by NZ Post.Manukau
mailtownStringName of the town/city when supplied by NZ Post.Warkworth
postcodeStringHolds the four digit postcode.0983
dpidStringA unique reference number assigned to each delivery address by NZ Post.2668726
primary_parcel_idStringThe unique identifier of the portion of land associated with the selected address.3866475
aims_address_idStringThe unique identifier from Land Information New Zealand (LINZ).1518959
xStringLongitude coordinate (in WGS84 format).174.643199
yStringLatitude coordinate (in WGS84 format).-36.426956
meshblockStringThe meshblock identifier for the requested census dataset (see census parameter). If not specified, the census parameter will default to 2018.146004
sa1_idStringThe Statistical Area 1 identifier for the requested census dataset (see census parameter). If not specified, the census parameter will default to 2018.7000001
sa2_idStringThe Statistical Area 2 identifier for the requested census dataset (see census parameter). If not specified, the census parameter will default to 2018.100200
sa2StringThe Statistical Area 2 name for the requested census dataset (see census parameter). If not specified, the census parameter will default to 2018.Rangaunu Harbour
ruralBooleanAn indicator to help determine if this address is located in a rural setting. Note: Different courier companies have different rural/urban boundaries so this determination should be confirmed by your delivery agent.true
urStringUrban rural name.Kaimaumau
ur_idStringUrban rural ID.1002
iurStringUrban rural indicator name.Rural settlement
iur_idStringUrban rural indicator ID.21
regionStringThe Regional Authority in which this address exists. Note: Regional Authorities are the top tier of local government in New Zealand.Auckland Region
region_idStringRegion ID.04
taStringThe Territorial Authority in which this address exists. Territorial authorities are the second tier of local government in New Zealand.Auckland
ta_idStringTerritorial Authority ID.060
conStringConstituency name.Te Hiku Constituency
con_idStringConstituency ID.0101
maoriconStringMaori Constituency name.Okurei Maori Constituency
maoricon_idStringMaori Constituency ID.0402
wardStringWard name.Banks Peninsula Ward
ward_idStringWard ID.06016
cbStringCommunity Board name.Te Hiku Community
cb_idStringCommunity Board ID.00101
tasubStringTerritorial Authority Subdivision name.Akaroa Subdivision
tasub_idStringTerritorial Authority Subdivision ID.06019
landwaterStringLand/Water description.Inlet
landwater_idStringLand/Water ID.22
address_line_1StringFirst line of the non-suburb/city/postcode portion of the address.Unit 2
address_line_2StringSecond line of the non-suburb/city/postcode portion of the address.1703A State Highway 1
pxidStringUnique address identifier.3-.1.1d.2.42.1T.2
successBooleanIndicates if the request was successful or not.true

Autocomplete parameters (address_params)

This table contains parameters and options that control which addresses are searched and returned for display in the drop down.

PropertyTypeDescriptionValue
deliveredStringFilter to search and return addresses delivered to by NZ Post.
    FilterStringSearch and return addresses delivered to by NZ Post.1
    AllStringOmit to search and return postal and non-postal (default).
post_boxStringFilter to includes/excludes PO Box type addresses from the search results.
    ExcludeExcludes PO Box type addresses from the search results.0
    IncludeOmit to include PO Box type addresses in the search results (default).
ruralStringThis filter includes/excludes rural/urban addresses.
    ExcludeExcludes rural addresses from the search results.0
    IncludeOmit to include rural addresses in the search results (default).
region_codeStringFilter to search addresses located in a single specified region (Regional Authority). See the region codes list here.Eg. 3
maxIntegerThe maximum number of results to return. A number between 1 and 100. (default is 10).10
asciiStringControl to reformat special characters (Eg. macrons) with their ASCII equivalent
    ReformatReformats special characters with their ASCII equivalent.1
    IncludeOmit to retain special characters within addresses in the search results (default).

Metadata parameters (address_metadata_params)

This table contains parameters and options that control the source of the address and metadata attributes returned on selection of an address.

PropertyTypeDescriptionValue
censusStringUsed to determine which census year’s statistical area identifiers (Meshblock, SA1 & SA2) will be returned in the response.
    2018census (default)2018
    2023census2023
asciiIntegerControl to reformat special characters (Eg. macrons) with their ASCII equivalent
    ReformatReformats special characters with their ASCII equivalent.1
    IncludeOmit to retain special characters within addresses and other fields of the response (default).