This API call takes an location identifier, and returns detailed information about that location.
Response Specification
The API response will contain all the addresses and associated IDs (pxid
) in the format requested in the API request.
Field Name | Type | Description | Example |
---|---|---|---|
a
|
String | Canonical location as supplied by Land Information New Zealand. | Seaview Road, Glenfield, Auckland |
pxid
|
String | Unique location identifier. | 1-.B.11.4.2H |
street
|
String | Holds the full name of the street. Note: The street attribute also includes the Street Type. | Seaview Road |
suburb
|
String | The suburb or locality of the address as assigned by Land Information New Zealand. | Glenfield |
city
|
String | The city, town or locality name as assigned by Land Information New Zealand. | Auckland |
region
|
String | The Regional Authority in which this location exists. Note: Regional Authorities are the top tier of local government in New Zealand. | Auckland Region |
x
|
String | Longitude coordinate (in WGS84 format). | 174.643199 |
y
|
String | Latitude coordinate (in WGS84 format). | -36.426956 |
success
|
Boolean | Indicates if the request was successful or not. | true |
Errors
Below are the possible errors that can be returned by the API.
- Validation error (1000)
- Key not found (1001)
- Key not provided (1002)
- Domain not registered with Addressfinder (1003)
- Secret not provided (1004)
- Direct API calls are not permitted on your current plan. (1005)
- Invalid credentials (1006)
- Secret should not be supplied (1008)
- The address autocomplete feature is unavailable as it has exceeded the number of free lookups. Please contact the website owner (1009)
- The record you are trying to load does not exist (1011)
- Domain parameter must not be included in a web request (1015)
- This domain has been blocked (1016)
- This service is not enabled on your current plan (1017)
- Your IP address has been blocked for these credentials (1018)
- HTTP Referer or Origin header record must be present when making a browser initiated request (1019)
- Your Addressfinder trial has ended (1020)
- Your Addressfinder trial has exceeded its allowed lookups (1021)
- Postal addresses are not enabled on your current plan (1022)
- Your Addressfinder plan is paused (1023)