Skip to main content

Location Metadata

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

Ready to integrate? Read the step-by-step guide here.

Location Metadata response specification (AU)

PropertyTypeDescriptionExample
full_locationStringFull location string.Mathers Road East, WALKERVILLE VIC 3959
location_typeStringThe kind of location. Valid values include street, locality or state.street
latitudeStringLatitude coordinate (in WGS84 format).-38.77287906
longitudeStringLongitude coordinate (in WGS84 format).146.10907797
street_nameStringHolds the name of the street. Note: This attribute response does not contain the street type.Mathers
street_typeStringThe type of street.Road
street_suffixStringThe suffix of the street. Typically contains a compass direction.East
streetStringThe full street name. Note: This attribute response contains the street name, street type and street suffix.Mathers Road East
locality_nameStringThe locality/suburb of this address.WALKERVILLE
state_territoryStringThe Australian state or territory containing the locationVIC
postcodeStringThe postcode assigned to a locality (for 'locality' locations), or to the locality a street is in (for 'street' locations).3959
successBooleanIndicates if the request was successful or not.true

Location Autocomplete parameters (location_params)

This table contains parameters and options that can be used to control which locations are searched and returned for display in the drop down.

PropertyTypeDescription
location_typesStringShow only locations of the supplied type. Use a comma to separate multiple values.
state_codesStringFilter the results according to the states or territories. Use a comma to separate multiple values.
maxIntegerThe maximum number of results to return. A number between 1 and 100. The default is 10 results.

Location Metadata response specification (NZ)

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

PropertyTypeDescriptionExample
aStringCanonical location as supplied by Land Information New Zealand.Seaview Road, Glenfield, Auckland
pxidStringUnique location identifier.1-.3.19.1.h
streetStringHolds the full name of the street. Note: The street attribute also includes the Street Type.Seaview Road
suburbStringThe suburb or locality of the address as assigned by Land Information New Zealand.Glenfield
cityStringThe city, town or locality name as assigned by Land Information New Zealand.Auckland
regionStringThe Regional Authority in which this location exists. Note: Regional Authorities are the top tier of local government in New Zealand.Auckland Region
xStringLongitude coordinate (in WGS84 format).174.643199
yStringLatitude coordinate (in WGS84 format).-36.426956
successBooleanIndicates if the request was successful or not.true

Location Autocomplete parameters (location_params)

This table contains parameters and options that can be used to control which locations are searched and returned for display in the drop down.

PropertyTypeDescription
streetStringThis filter restricts results to streets
suburbStringThis filter restricts results to suburbs.
cityStringThis filter restricts results to cities.
regionStringThis filter restricts results to regions.
region_codeStringOnly return locations within the boundary of the selected region (Regional Authority).
strictStringDetermines how closely matched the results should be to the q parameter.
maxIntegerThe maximum number of results to return. A number between 1 and 100. The default is 10 results.