The Location Metadata API is used to load the full metadata associated with a location (street, suburb or state) selected from the Location Autocomplete API
Response Specification
The API response will include all the attributes listed below in the format requested in the API request. Empty attributes for the matched address will be returned with a null value.
Key
GNAF Returned (if present) when searching the gnaf
database.
PAF Returned (if present) when searching the paf
database.
GNAF,PAF Returned (if present) when searching the combined gnaf,paf
datasets.
Field Name | Type | Description | Example |
---|---|---|---|
full_location
|
String | Full location string. | Mathers Road East, WALKERVILLE VIC 3959 |
location_type
|
String | The kind of location. Valid values include street, locality or state. | street |
latitude
|
String | Latitude coordinate (in WGS84 format). | -38.77287906 |
longitude
|
String | Longitude coordinate (in WGS84 format). | 146.10907797 |
street_name
|
String | Holds the name of the street. Note: This attribute response does not contain the street type. | Mathers |
street_type
|
String | The type of street. | Road |
street_suffix
|
String | The suffix of the street. Typically contains a compass direction. | East |
street
|
String | The full street name. Note: This attribute response contains the street name, street type and street suffix. | Mathers Road East |
locality_name
|
String | The locality/suburb of this address. | WALKERVILLE |
state_territory
|
String | The Australian state or territory containing the location | VIC |
postcode
|
String | The postcode assigned to a locality (for 'locality' locations), or to the locality a street is in (for 'street' locations). | 3959 |
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)