Skip to main content

Address Reverse Geocode API

This API takes GPS coordinates (latitude and longitude) and returns the nearest matching addresses, ordered by distance. It works in tandem with the Address Metadata API to load detailed information for a selected address.

Endpoint

New Zealand

https://api.addressfinder.io/api/nz/address/reverse_geocode

Parameters

ParameterDescriptionTest Value
key

Your unique Addressfinder license key.


Type: string required
secret

Your unique secret key from Portal Credentials. You can also pass your secret key into the Authorization header of the request. Only required for server-to-server calls.


Type: string
format

Response format.


Default value: json
Type: string required
x

Longitude in WGS84 format.


Type: string required
y

Latitude in WGS84 format.


Type: string required
domain

Used to identify your service in the Addressfinder Portal. Must be registered in the Portal.


Type: string
max

Maximum number of results to return (1–100).


Default value: 10
Type: integer

Responses

200 Closest addresses to the provided coordinates

NameDescriptionExample
successTrue if the query completed successfully.

Type: boolean
true
completions

Type: array
-
    aCanonical address.

Type: string
184 Willis Street, Te Aro, Wellington 6011
    pxidUnique address identifier.

Type: string
2-.F.1W.p.0G1Jx

400 Invalid input or missing required parameters

NameDescriptionExample
error

Type: string
Missing required parameter 'x'

See API Error Reference for details.