Skip to main content

POI Metadata API

The Points of Interest Metadata API is used to collect metadata for a POI selected from the Points of Interest Autocomplete API. Metadata includes location, street, region, LINZ and NZ Post data.

Endpoint

New Zealand

https://api.addressfinder.io/api/nz/points_of_interest/metadata

Parameters

ParameterDescriptionTest Value
key

Your unique Addressfinder license key.


Type: string required
secret

Your unique secret key from Portal Credentials. You can also pass your secret key into the Authorization header of the request. Only required for server-to-server calls.


Type: string
format

Response format (json or xml).


Type: string required
id

Unique POI identifier from the autocomplete API.


Type: string required
domain

Used to identify your service in the Addressfinder Portal. Must be registered in the Portal.


Type: string

Responses

200 Metadata for the selected point of interest

NameDescriptionExample
pxidThe unique point of interest identifier.

Type: string
2457
nameName of the point of interest.

Type: string
Middle School West Auckland
xLongitude (WGS84).

Type: string
174.643199
yLatitude (WGS84).

Type: string
-36.426956
address_pxidUnique identifier for the associated address.

Type: string
2-.1.6.t.25oRi
numberStreet number (or PO box number).

Type: string
287-289
alphaAlpha suffix from address (e.g. "B" in "1B").

Type: string
-
postcodeFour-digit postcode.

Type: string
0983
rd_numberNZ Post rural delivery number.

Type: string
-
aCanonical full address.

Type: string
287-289 Lincoln Road, Henderson, Auckland 0610
postalPostal address (if NZ Post delivers here).

Type: string
-
mailtownMailtown from NZ Post (if available).

Type: string
-
post_suburbPostal suburb (if available).

Type: string
-
taTerritorial Authority (LINZ).

Type: string
Auckland
aims_address_idLINZ AIMS Address ID.

Type: integer
1518959
sufiSame as aims_address_id, returned as integer.

Type: integer
1518959
street_typeStreet type (e.g. Road, Avenue).

Type: string
Road
building_nameBuilding name if available.

Type: string
-
cityCity, town or locality.

Type: string
Warkworth
suburbSuburb or locality.

Type: string
Henderson
regionRegional Authority.

Type: string
Auckland Region
streetFull street name and type.

Type: string
Lincoln Road
postal_line_1NZ Post Line 1.

Type: string
287-289 Lincoln Road
postal_line_2NZ Post Line 2.

Type: string
Henderson
postal_line_3NZ Post Line 3.

Type: string
Auckland
postal_line_4NZ Post Line 4.

Type: string
-
postal_line_5NZ Post Line 5.

Type: string
-
meshblockMeshblock identifier for census.

Type: string
146004
dpidUnique identifier from NZ Post.

Type: string
2668726
successWhether the request was successful.

Type: boolean
true

400 Missing or invalid parameters

NameDescriptionExample
error

Type: string
Missing required parameter 'id'

See API Error Reference for details.