Country

Geocode New Zealand addresses offline

One file for all of New Zealand, the Chatham Islands included, read locally. No server, no API key, and the addresses you geocode never leave your machine.

Get started

The file for New Zealand is 29 MB and holds 2.43 million addresses from the LINZ NZ Addresses register, all 16 regions and the Chatham Islands (via OpenAddresses and Overture Maps). Download it once, checked against the signed release; every query after that runs on your machine, with no API key and no rate limit.

terminalpip
$ pip install gridpin-mcp   # includes the engine
$ gridpin-fetch nz         # New Zealand, 29 MB, verified download
geocode.pyPython
import gridpin
from gridpin_mcp import sheets

g = gridpin.Geocoder(str(sheets.download("nz")))  # no-op once downloaded

g.geocode("1 queen st auckland", 1)
# -> house, Queen Street 1, Auckland Central
g.geocode("100 Cuba Street, Te Aro, Wellington 6011", 1)
# -> house, Cuba Street 100, Te Aro
g.geocode("45/99 Guppy Road, Taradale, Napier", 1)
# -> house, Guppy Road 99, Taradale
g.geocode("174 Saint Vincent Street, Nelson", 1)
# -> house, St Vincent Street 174
g.geocode("2703 Te Anga Road", 1)
# -> house, Te Anga Road 2703, Te Anga
g.geocode("Pohangina Valley East Rd 518", 1)
# -> house, Pohangina Valley East Road 518

An address may name the suburb, the town or both. A flat before the house after a slash (45/99) is read past. A postcode in the query does no harm, but answers carry none: the LINZ register has no postcodes. A town alone (Auckland) answers with the town, with low confidence.

Data source: Toitū Te Whenua Land Information New Zealand (LINZ), NZ Addresses. Contains data sourced from the LINZ Data Service licensed for reuse under CC BY 4.0.

How often it finds the right house, compared with Nominatim and Photon on independent truth: benchmark. Try it without installing: the live demo (pick New Zealand in the list), or the Colab notebook (set COUNTRY = "nz").