/v1/addressesCosts 1 per requestSuggest addresses as someone types
G-NAF only. Unlike `/v1/typeahead`, which also returns suburbs and places, every result here is a resolved address, so nothing has to be filtered out.
Matching is a prefix of the street line, so type it as it is written: number first, then the street. A unit in front is understood, so `2/32 Marine Parade` finds the same address as `32 Marine Parade`. A trailing postcode narrows.
Each result carries its `gnaf_pid`. Store that, not the text: the text is however your user typed it that day, the pid is the address.
- q
- string, required — e.g. 145 sydney road
- limit
- integer — defaults to 10
Response
Example response, 25 lines
{
"data": [
{
"gnaf_pid": "GATAS717990791",
"formatted": "Piermont Resort, Unit 9, 12990 Tasman Highway, Swansea TAS 7190",
"components": {
"building_name": "Piermont Resort",
"flat_type": "Unit",
"flat_number": "9",
"number_first": "12990",
"street_name": "Tasman",
"street_type": "Highway",
"locality_name": "Swansea",
"state": "TAS",
"postcode": "7190"
},
"lat": -42.1557993,
"lng": 148.07629134,
"mesh_block": "60049060000",
"country": "australia",
"region": "tas",
"locality": "swansea"
}
]
}Answers
- 200 Matching addresses, best first.
- 400 `q` is missing.
- 401 No key, or a key we do not recognise. Send it as `Authorization: Bearer pf_live_...`.
- 402 The quota for this billing period is spent. `X-Quota-Reset` says when it returns; the billing portal is how to raise it sooner.
- 429 Too many requests a second for this plan. `RateLimit-Limit` says the rate and `Retry-After` says how long to wait; this is a rate, not a quota, so it clears in a second.