Skip to main content

Location Metadata API

The Location Metadata API is used to collect metadata associated with a location selected from the New Zealand Location Autocomplete API. The response includes geographic coordinates, canonical address formatting, and location metadata from LINZ.

Endpoint

New Zealand

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

Parameters

ParameterDefaultDescriptionTest Value
key

Your unique Addressfinder license key.

Required string

secret

Your unique secret key. You can also pass it into the Authorization header. Required only for server-to-server calls.

Optional string

formatjson

The format of the response.

Required string

pxid

Unique address identifier from the Location Autocomplete API.

Required string

domain

Used to identify your calling service for usage tracking in the Addressfinder Portal. Must be registered in the Portal.

Optional string

Responses

200 Location metadata for the selected pxid

NameTypeDescriptionExample
pxidstringThe unique location identifier.1-.B.11.4.2H
astringCanonical location string.Seaview Road, Glenfield, Auckland
xnumberLongitude in WGS84.174.643199
ynumberLatitude in WGS84.-36.426956
successbooleanWhether the request completed successfully.true
streetstringStreet name and type (from LINZ).Martin Street
suburbstringSuburb or locality name (from LINZ).Gore
citystringCity, town, or locality (from LINZ).Gore
regionstringRegional Authority (from LINZ).Southland Region

400 Invalid input or missing parameters.

NameTypeDescriptionExample
errorstringMissing required parameter 'pxid'

See API Error Reference for details.