Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

GridPin offline geocoder

@gridpinRun by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

Offline geocoding and reverse geocoding from one local file per country. No API key, no rate limit.

Maps & geocodingv0.7.0Apache-2.0Rust
Freeno charge per call

Runs on your machine from its package; the steps are below.

GridPin demo: typo-tolerant forward and reverse geocoding in the terminal
From the README

What it does

  1. Reads
  2. Writes
  3. High impact

At most: only reads or looks up information.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

PyPIgridpin-mcpv0.7.0

Run

uvx gridpin-mcp

MCP client config

{
  "mcpServers": {
    "gridpin-offline-geocoder": {
      "command": "uvx",
      "args": [
        "gridpin-mcp"
      ]
    }
  }
}
README26 min read

GridPin

PyPI crates.io DuckDB community extension MCP server License: Apache-2.0 DOI CI Open in Colab Live demo

A country in a file — offline forward and reverse geocoding.

GridPin demo: typo-tolerant forward and reverse geocoding in the terminal

Quick start

console
$ pip install gridpin gridpin-mcp
$ gridpin-fetch fr    # France sheet, 365 MB, checked against the signed release; prints its path
python
import gridpin
from gridpin_mcp import sheets

g = gridpin.Geocoder(str(sheets.download("fr")))  # no-op once the sheet is downloaded
g.geocode("1 rue de la Paix, Paris", 1)

No install: try it in Colab — the Serbia sheet, forward, reverse and batch geocoding in five minutes.

Countries: us ca de fr it es au mx nl pl br rs nz (gridpin-fetch --list). For AI agents there is an MCP server — claude mcp add gridpin -- uvx gridpin-mcp, details in mcp/README.md. Everything after the download runs offline.

If GridPin is useful to you, a star on GitHub helps other people find it.

Ways to use it — one engine and the same country files behind each: CLI · spreadsheets (CSV) · local Nominatim-compatible server · Docker · Python · GeoPandas · R · Node.js · DuckDB · QGIS · AI agents (MCP) · LangChain · SQLite and Datasette · polars · ClickHouse · dbt · NocoDB, Baserow and Grist · Google Sheets · Benthos and Redpanda Connect · address suggestions in a web form · WebAssembly · Home Assistant · Rust. The whole list with what each one needs: documentation.

GridPin is an offline geocoder: a country in a data file, memory-mapped and ready in milliseconds, with no server, no database import, and no network. It resolves addresses to coordinates (forward) and coordinates to the nearest indexed address (reverse — approximate: streets are indexed by centroid, so each result carries its distance_m). On a single arm64 laptop core, measured on the France sheet: exact address lookups run at ~3,000/s, reverse geocoding at ~1,800/s, and typo-tolerant fuzzy matching much slower — tens of milliseconds per query, so batch it across cores when you feed it messy input. The engine and every query run fully offline — not a byte of what you geocode leaves your machine; the only network step is you downloading a sheet yourself, and a downloaded sheet carries no query data. Because you compute results locally from openly licensed data, you may store them forever, which hosted geocoding APIs typically forbid. If you have considered self-hosting Nominatim (a beefy server, days of import) or an on-prem geocoder license, the alternative here is: download one file, open it on any laptop.

Install

CLI — prebuilt binaries for Linux x86_64 (x86_64-unknown-linux-gnu), macOS Apple Silicon (aarch64-apple-darwin) and Windows x86_64 (x86_64-pc-windows-msvc) are attached to every GitHub release. Since v0.9.0 a release also has static Linux builds that run on any distribution (x86_64-unknown-linux-musl, aarch64-unknown-linux-musl) and .deb and .rpm packages for x86_64 and arm64. Homebrew: brew install gridpin/gridpin/gridpin; Scoop: scoop bucket add gridpin https://github.com/gridpin/scoop-gridpin, then scoop install gridpin. Other targets (Intel macOS, Windows arm) build from source:

console
$ base=https://github.com/gridpin/gridpin/releases/download/v0.10.0
$ curl -fsSLO "$base/gridpin-aarch64-apple-darwin.tar.gz"
$ curl -fsSLO "$base/gridpin-release-signers"
$ curl -fsSLO https://dl.gridpin.dev/v0.10.0/attestation.json
$ curl -fsSLO https://dl.gridpin.dev/v0.10.0/attestation.json.sig
# the trust root comes from the OTHER channel — see "Verifying a release" for why
$ ssh-keygen -Y verify -f gridpin-release-signers -I gridpin-release \
    -n gridpin-g02 -s attestation.json.sig < attestation.json \
    || { echo "signature does not verify — STOP"; exit 1; }
$ want=$(python3 -c 'import json;print([a["sha256"] for a in json.load(open("attestation.json"))["assets"] if a["name"]=="gridpin-aarch64-apple-darwin.tar.gz"][0])')
$ test "$want" = "$(shasum -a 256 gridpin-aarch64-apple-darwin.tar.gz | cut -d' ' -f1)" \
    || { echo "archive does not match the signed attestation — STOP"; exit 1; }
$ tar xzf gridpin-aarch64-apple-darwin.tar.gz && sudo mv gridpin /usr/local/bin/

Yes, that is longer than curl | tar. Unpacking an archive runs its contents sooner or later, and a checksum published beside the file it describes proves only that the download was not truncated — whoever can replace one can replace both. The four extra lines are what makes it a check.

Or build from source with stable Rust: cargo build --release --manifest-path gridpin/Cargo.toml.

Python — pip install gridpin. This one rests on PyPI's own integrity, not on the signature above: the attestation covers the artifacts we publish ourselves. If you need the signed chain, take the wheel from the GitHub release and verify it the same way as the CLI archive.

DuckDB — INSTALL gridpin_ext FROM community; then LOAD gridpin_ext;. The community catalog builds and signs the extension itself, so that trust root is DuckDB's rather than ours. It builds the current release for the current DuckDB lines: that takes DuckDB 1.5.6 or newer; older DuckDB versions install an older build. Check what you got with SELECT extension_version FROM duckdb_extensions() WHERE extension_name = 'gridpin_ext';. When the catalog is unreachable, or for the current release on DuckDB 1.5.5, download gridpin_ext-<platform>.zip from the releases page: it is built for DuckDB 1.5.5 only. It is a loadable extension, so authenticate it before you load it — same three lines as the CLI archive above, with gridpin_ext-<platform>.zip as the asset name:

console
$ ssh-keygen -Y verify -f gridpin-release-signers -I gridpin-release \
    -n gridpin-g02 -s attestation.json.sig < attestation.json \
    || { echo "signature does not verify — STOP"; exit 1; }
$ want=$(python3 -c 'import json;print([a["sha256"] for a in json.load(open("attestation.json"))["assets"] if a["name"]=="gridpin_ext-osx_arm64.zip"][0])')
$ test "$want" = "$(shasum -a 256 gridpin_ext-osx_arm64.zip | cut -d' ' -f1)" \
    || { echo "extension does not match the signed attestation — STOP"; exit 1; }

Then unzip it and LOAD the extracted gridpin_ext.duckdb_extension in a duckdb -unsigned session — keep that basename, DuckDB derives the entry symbol from it.

Examples

CLI

console
# forward: address -> coordinates, top 3 candidates
$ gridpin query france.bin "1 rue de la Paix Paris" -k 3

# reverse: coordinates -> nearest indexed address (approximate; each hit carries distance_m)
$ gridpin reverse france.bin 48.8686 2.3305

# batch: JSONL in ({"q": "..."} per line), JSONL out
$ gridpin batch france.bin queries.jsonl results.jsonl -k 1

# a spreadsheet: CSV or TSV in, the same file with gp_lat, gp_lon, gp_precision, ... out
$ gridpin batch usa.bin addresses.csv geocoded.csv
$ gridpin batch usa.bin orders.csv geocoded.csv --column "street,city,zip" --delimiter ";"

# a local geocoding server: own JSON API plus Nominatim-compatible /search and /reverse,
# and Google's format at /maps/api/geocode/json
$ gridpin serve usa.bin --port 8080

# an address already split into columns; your own place names; a file of coordinates
$ gridpin batch usa.bin clients.csv out.csv --columns street=Street,number=No,city=Town,region=State,postcode=ZIP
$ gridpin batch usa.bin orders.csv out.csv --aliases places.csv
$ gridpin batch usa.bin pings.csv out.csv --reverse

# the sheet as a table: CSV, JSONL, GeoJSON or GPX, the sheet's licence first
$ gridpin list usa.bin --street "Pennsylvania Ave NW" --city Washington
$ gridpin export rs.bin --all -o serbia.csv
$ gridpin sample es.bin --n 1000 --seed 7 -o test_addresses.csv
$ gridpin stats usa.bin -o coverage.geojson

# your own data beside the sheet
$ gridpin nearest clients.csv depots.csv --sheet usa.bin -o out.csv
$ gridpin join orders.csv zones.geojson -o out.csv

Every answer carries match_level (Esri's scale: PointAddress, StreetAddress, StreetName, Locality, ...) and match_status (M, T, U) beside precision and weak. Details: the sheet as a table, your own data, moving off the Google Geocoding API, Spark and Databricks. New commands and fields are in 0.9.0 and later.

Python

console
$ pip install gridpin
python
import gridpin

g = gridpin.Geocoder("france.bin")
g.geocode("1 rue de la Paix Paris", 1)
g.reverse(48.8686, 2.3305, 1)

With pandas: pip install "gridpin[pandas]", then gridpin.sheets.fetch("us"), gridpin.geocode_df(df, "address", "us") (or df.gridpin.geocode(...)) and gridpin.reverse_df(df, "us"); the gp_* columns are the same as in gridpin batch CSV and gp_geocode_df in R. gridpin.sheets.list / path / verify / fetch use the same cache and checks as gridpin sheets. Extras: [pandas], [geopy]; without them the wheel still has no dependencies.

The wheel wraps the Rust engine directly (pyo3/maturin); on a single core, exact lookups run at ~3,000/s, while typo-heavy input is fuzzy-matched at tens of milliseconds per query — use geocode_many() to batch across cores.

DuckDB

The gridpin_ext extension exposes five functions: gridpin_load, gridpin_load_poi (optional POI layer), gridpin_reset, gridpin_geocode, gridpin_reverse. One country per session — the loaded path may not change while it is loaded (a different path is an error, so a path column can never swap the index in the middle of a running query); to switch countries run SELECT gridpin_reset(); (a standalone statement — it refuses to run inside a multi-row query) and load the new sheet. The loaded sheet is shared by every connection to the same database process: coordinate switches externally when several connections query concurrently.

sql
LOAD gridpin_ext;
SELECT gridpin_load('france.bin');
SELECT gridpin_geocode(address)  FROM orders;
SELECT gridpin_reverse(lat, lon) FROM pings;

Countries & data

A country in a file — most countries are a single file (a few regional datasets add a small companion file, and the optional POI layer is its own file). We call a country file a sheet, the full set an atlas, and a monthly data release fresh sheets.

All files are free; download only the file of the country your addresses are in (click its name).

FileWhat's insideData licenseSize
australia.binAustralia. 11.92M addresses in all states and territories, including the external territories. Source: Overture / G-NAF (Geoscape Australia).Open G-NAF EULA130 MB
brazil.binBrazil. 67.19M addresses in 26 states and the Federal District. Source: Overture / IBGE CNEFE 2022.CC0 1.0 (IBGE public data)677 MB
canada.binCanada. 16.94M addresses in all provinces and territories. Source: Overture / Statistics Canada NAR, Adresses Québec, Yukon.open data (per source)183 MB
france.binFrance. 26.1M addresses. Source: BAN, the national registry.Licence Ouverte365 MB
germany.binGermany. 22.84M addresses in 16 of 16 Länder; Bavaria without postcodes. Source: Overture / OpenAddresses, 15 Länder; Bavaria: LoD2 building models (LDBV); BNetzA postcode witness.dl-de/by-2-0 · dl-de/zero-2-0 · CC BY 4.0 (per source)256 MB
italy.binItaly. 25.9M addresses. Source: Overture / ANNCSU.CC BY 4.0247 MB
mexico.binMexico. 14.14M addresses in all 32 states, from an address layer surveyed in 2009–2010. Source: Overture / INEGI address layer, Correos de México postal codes.open data (per source)156 MB
netherlands.binNetherlands. 9.9M addresses. Source: Overture / NGR (BAG).Public Domain Mark 1.0103 MB
new-zealand.binNew Zealand. 2.43M addresses in all 16 regions and the Chatham Islands. Source: Overture / LINZ NZ Addresses.CC BY 4.029 MB
poland.binPoland. 8.63M addresses in all 16 voivodeships. Source: Overture / PRG address points (GUGiK).no licence issued, free use; source named106 MB
serbia.binSerbia. 2.6M addresses. Source: Overture / RGZ.data.gov.rs Terms32 MB
spain.binSpain. 15.27M addresses in all 52 postal provinces, including Ceuta and Melilla. Source: Overture / CartoCiudad (IGN/CNIG).CC BY 4.0185 MB
usa.binUnited States. 95.33M point addresses plus 34.52M points from address ranges, in 50 states and the District of Columbia. 7 states have address ranges only. Source: Overture / NAD + Census TIGER/Line.open data (per source)1.45 GB
au_poi.binAustralia, places. Optional add-on to australia.bin: places by name. Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)131 MB
br_poi.binBrazil, places. Optional add-on to brazil.bin: places by name. Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)502 MB
ca_poi.binCanada, places. Optional add-on to canada.bin: places by name. Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)150 MB
fr_poi.binFrance, places. Optional add-on to france.bin: places by name, such as "Gare de Lyon, Paris". Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)399 MB
de_poi.binGermany, places. Optional add-on to germany.bin: places by name. Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)535 MB
it_poi.binItaly, places. Optional add-on to italy.bin: places by name. Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)381 MB
mx_poi.binMexico, places. Optional add-on to mexico.bin: places by name. Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)260 MB
nl_poi.binNetherlands, places. Optional add-on to netherlands.bin: places by name. Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)138 MB
nz_poi.binNew Zealand, places. Optional add-on to new-zealand.bin: places by name. Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)24 MB
pl_poi.binPoland, places. Optional add-on to poland.bin: places by name. Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)109 MB
rs_poi.binSerbia, places. Optional add-on to serbia.bin: places by name. Serbia has fewer places than other countries, as in Overture. Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)15 MB
es_poi.binSpain, places. Optional add-on to spain.bin: places by name. Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)255 MB
us_poi.binUnited States, places. Optional add-on to usa.bin: places by name. Not needed to geocode addresses. Source: Overture Maps places.CDLA-Permissive-2.0 · Apache-2.0 · CC0-1.0 (per source)1.7 GB

Bavaria comes from building models and has no postcodes. Its addresses are read from the 3D building models (LoD2) of the Bavarian surveying office, which carry no postcode, so Bavarian answers have an empty postcode. Give the town with a Bavarian address: a street and a postcode alone typically return a same-named street elsewhere with low confidence. Per-Land providers and licenses are in ATTRIBUTIONS.md.

Since v0.10.0 every country has a places layer (<cc>_poi.bin, see the table). Pass the layer and the engine cascades automatically — address index first, POI only on weak results, exact addresses never overridden: gridpin query france.bin "Gare de Lyon, Paris" --poi fr_poi.bin or gridpin.Geocoder("france.bin", poi="fr_poi.bin").

The cascade precedence, identical for free-form and structured input:

Address answerPOI answerWinner
confident (e.g. exact house match)— (not consulted)address
weak (city-level / low confidence / weak fuzzy)more confidentPOI, flagged poi_layer
weakequal or less confidentaddress (ties keep the address)
emptyany hitPOI, flagged poi_layer
emptyempty / no layer loadedempty

Structured input feeds EVERY provided token to the POI escalation, joined in the canonical street number postcode city order — a number is often part of a place name ("Studio 54"). The two input styles agree on the winner for address resolution and for POIs whose tokens are in that canonical order. They can differ only when the fields you supply reorder the words of an order-sensitive POI name (splitting "54 Studio" into street:"studio", number:"54" re-forms it as "Studio 54"); pass such a query as free-form to keep the original word order.

Sizes are for v7 builds (August 2026; Germany repacked 2026-09-10; Spain added 2026-09-28; Brazil added 2026-10-11; the United States added 2026-10-24; Canada added 2026-10-31; Mexico added 2026-11-02; Australia added 2026-11-06; Poland, New Zealand and Bavaria added 2026-11-22); the exact byte sizes are checked against a pinned source of truth in CI. A sheet is smaller than its own raw source: France's registry download is an 885 MB gzip that unpacks to 4.9 GB of CSV, while the finished sheet — the same 26.1M addresses plus every index (typo automata, spatial cells, ranking) — is 365 MB, ready to query.

The matching SHA256SUMS manifest (covering the engine binary and every sheet) is on the GitHub release. Subscribers fetch fresh monthly builds from a keyed URL instead — see gridpin.dev/docs.

Quality

GridPin is built for addresses as people type them — typos, shortened street types, missing commas, the town written first. Share of queries whose first answer lands within 150 m of an independent reference coordinate (empty answers count as misses):

Query setRowsGridPinPhotonNominatim
Australia · distorted addresses2,00074.6%50.6%42.2%
Australia · radio sites (as recorded)1,00065.8%25.2%13.0%
Brazil · distorted addresses2,37620.8%19.8%9.6%
Brazil · health-facility register (as typed)1,00036.8%28.2%20.7%
Canada · distorted addresses2,78556.1%45.2%32.7%
Canada · radio-station sites (as recorded)1,00039.5%39.3%25.2%
Germany · distorted addresses2,00082.1%46.9%15.8%
Germany · clean addresses2,00082.8%83.2%81.2%
Mexico · distorted addresses2,00024.1%13.8%7.7%
Mexico · cultural venues (as recorded)1,00028.0%17.3%10.2%
New Zealand · distorted addresses2,00084.0%79.4%59.5%
New Zealand · polling places (as recorded)1,00088.8%70.2%25.6%
Poland · distorted addresses3,10444.3%37.0%14.7%
Poland · base-station sites (as recorded)1,00067.5%44.7%31.0%
Spain · distorted addresses1,59034.1%29.6%20.8%
United States · distorted addresses3,65537.5%28.5%24.3%
United States · historic-places register (as recorded)1,00066.4%38.9%52.3%

Distorted means each real address was changed by one fixed mechanical rule, with the reference coordinate kept byte for byte. On German and Spanish distorted addresses GridPin leads both services; on Brazilian distorted addresses GridPin and Photon are level, both well ahead of Nominatim; on clean German addresses GridPin and Photon are level (p=0.6691367 — not proof of parity). We show the sets where GridPin leads or is level; on the other Spanish sets Photon leads, and on clean Brazilian addresses Photon leads too; on clean Canadian addresses Photon leads (59.1% vs 57.6%; Nominatim 57.2%); on clean Mexican addresses GridPin leads (29.4% vs Photon 15.9%, Nominatim 10.1%). Counts, paired tests and data fingerprints for every set are in docs-public/BENCHMARK.md; the summary lives on the test bench page.

Compatibility. GridPin answers in the Photon API format, forward and reverse (the reverse endpoint is implemented since 2026-08-06). On the external geocoder-tester suite — a compatibility fixture set, not an accuracy oracle — the full official Alsace numbered-address file passes 230/285 (2026-08-07; 0 → 173 → 208 → 230 as the adapter matured).

Two more axes where the comparison is not close: speed — ~3,000 exact lookups per second on a single arm64 core, with no network round-trip — and cost and privacy: no per-query fee at any volume, and not one query leaves your machine.

CI runs cargo test on three operating systems, plus a public smoke test that builds a tiny Monaco sheet from an OSM extract and runs live queries against it.

How it works

A country sheet is a single self-contained index file designed to be memory-mapped: opening it is effectively instant, there is no import into a database and no daemon to keep warm, and the first query returns in milliseconds from a cold start. Inside the file, sections are laid out for lazy access: an FST over the normalized lexicon for exact and prefix matching, spatial cells for reverse lookup and proximity ranking, typo automata for bounded-edit-distance fuzzy matching, and optional ML sections for query parsing and candidate ranking. The engine touches only the pages a query needs, which is why lookups stay in the millisecond range even on modest hardware.

Country-specific behavior lives in the data, not the binary. Normalization and parsing rule tables ship inside the sheet itself as a dedicated section, so a monthly data release can fix a country's quirks — abbreviations, renamed streets, administrative reshuffles — without an engine upgrade; engine and data are versioned independently. This repository contains the public parts: the Rust engine and CLI, the Python bindings, the DuckDB extension, the data pipeline (DuckDB SQL under prep/), and the docs. The rule tables (shipped inside paid data files), the evaluation corpora, and the ML training code are private.

Verifying a release

Every release is covered by one signed attestation. The signature spans the asset graph — the sheets, the binaries and this checker, each by size and two hashes. It does not cover SHA256SUMS itself: that file lists the proofs, so it cannot be inside them. The checksums are still pinned, because every line in them must match the signed graph — but the authority is the attestation, not the checksum file. Two properties make the check worth anything, and both are about order and source, not about running more commands.

The trust root never comes from the channel it checks. gridpin-release-signers (the public half of the signing key) and verify_release.py come from the GitHub release; the data files and the proofs come from dl.gridpin.dev. Whoever controls one channel cannot hand you both a forged file and the key that blesses it.

Nothing you downloaded runs until it has been authenticated. verify_release.py is an ordinary Python program: running it first and checking signatures afterwards would mean executing an untrusted download. Steps 3–5 below use only ssh-keygen and shasum, which you already trust, and only step 6 runs our code.

bash
mkdir gridpin-v0.10.0 && cd gridpin-v0.10.0
mkdir trust data          # two directories on purpose: the checker never sits in what it checks
gh_base=https://github.com/gridpin/gridpin/releases/download/v0.10.0

# 1. TRUST ROOT — from GitHub, never from the download host
curl -fsSL -o trust/gridpin-release-signers "$gh_base/gridpin-release-signers"
curl -fsSL -o trust/verify_release.py       "$gh_base/verify_release.py"

# 2. Data and proofs — from the download host
for f in france.bin germany.bin italy.bin netherlands.bin serbia.bin fr_poi.bin spain.bin brazil.bin usa.bin canada.bin mexico.bin \
         australia.bin poland.bin new-zealand.bin \
         SHA256SUMS attestation.json attestation.json.sig; do
  curl -fsSL -o "data/$f" "https://dl.gridpin.dev/v0.10.0/$f"
done

# 3. The key is the one published below — compare by eye, before anything else
ssh-keygen -lf trust/gridpin-release-signers
#    expected: SHA256:Y1Q/c9oMgST5VkyU78Py/XM5QiQP8KXwe0fopZA+YXA

# 4. The attestation really is signed by that key (system ssh-keygen, not our code)
ssh-keygen -Y verify -f trust/gridpin-release-signers -I gridpin-release \
           -n gridpin-g02 -s data/attestation.json.sig < data/attestation.json \
  || { echo "signature does not verify — STOP"; exit 1; }

# 5. The checker you downloaded is the one that signature covers.
#    Its expected hash comes out of the attestation you just authenticated.
want=$(python3 -c 'import json;print([a["sha256"] for a in json.load(open("data/attestation.json"))["assets"] if a["name"]=="verify_release.py"][0])')
test "$want" = "$(shasum -a 256 trust/verify_release.py | cut -d" " -f1)" \
  || { echo "checker does not match the signed attestation — STOP"; exit 1; }

# 6. Only now run it, from outside the directory it judges.
python3 trust/verify_release.py --dir data --channel r2 \
        --allowed-signers trust/gridpin-release-signers \
        --expected-public-sha <commit from release notes>

Expected output: OK: owner signature verified; N assets, checksums and attestation agree. Any other exit code means do not use the files.

Step 3 is the one thing a machine cannot do for you. The published fingerprint is

SHA256:Y1Q/c9oMgST5VkyU78Py/XM5QiQP8KXwe0fopZA+YXA

If it ever differs and no signed announcement explains the change, stop and write to contact@gridpin.dev.

Data licensing & attribution

The engine is Apache-2.0. Each sheet carries the license of its source data:

  • Australia — "Incorporates or developed using G-NAF © Geoscape Australia licensed by the Commonwealth of Australia under the Open Geo-coded National Address File (G-NAF) End User Licence Agreement." Adapted by GridPin. That licence does not allow using this data to compile addresses for sending mail unless each address is verified against a second source.
  • Brazil — IBGE, CNEFE 2022, via Overture/OpenAddresses; public data, labelled CC0 by Overture. Address normalization applied.
  • Canada — Statistics Canada National Address Register under the Statistics Canada Open Licence (required notice: "Adapted from Statistics Canada, National Address Register, 2024. This does not constitute an endorsement by Statistics Canada of this product."); Adresses Québec (MRNF) under CC BY 4.0; Yukon civic addresses under the Open Government Licence – Yukon ("Contains information licensed under the Open Government Licence – Yukon"); all via Overture/OpenAddresses; settlement names from GeoNames (CC BY 4.0).
  • France — BAN, under Licence Ouverte 2.0.
  • Germany — the surveying offices of 15 Länder via Overture, each under its own licence (mostly Datenlizenz Deutschland – Namensnennung 2.0); the per-Land list with the attribution lines is in ATTRIBUTIONS.md. Bavaria: Bayerische Vermessungsverwaltung – www.geodaten.bayern.de, 3D building models (LoD2), under CC BY 4.0; no postcodes.
  • Italy — ANNCSU via Overture/OpenAddresses, under CC BY 4.0.
  • Mexico — "Fuente: INEGI, Vectorial de localidades amanzanadas y números exteriores (actualización 2009-2010), via AddressForAll"; postal codes: Correos de México (Libre Uso MX). GridPin's sheet is a derived work, not an INEGI product, and INEGI does not endorse it.
  • Netherlands — Nationaal Georegister (BAG) via Overture, under Public Domain Mark 1.0.
  • New Zealand — "Contains data sourced from the LINZ Data Service licensed for reuse under CC BY 4.0." Toitū Te Whenua Land Information New Zealand (LINZ), NZ Addresses, via Overture/OpenAddresses, under CC BY 4.0. Adapted by GridPin (normalized, filtered and re-keyed); place reference from GeoNames (CC BY 4.0).
  • Poland — "Source: Państwowy Rejestr Granic (PRG), address points, Główny Urząd Geodezji i Kartografii (GUGiK), geoportal.gov.pl." Adapted by GridPin. No licence is issued for this data and it is free to use; the law requires naming the source (Prawo geodezyjne i kartograficzne, art. 40c(3)). Known houses are derived from Overture places (CDLA-Permissive-2.0, Apache-2.0, CC0-1.0).
  • Serbia — RGZ via Overture, under data.gov.rs Terms of use; settlement-name aliases from GeoNames (CC BY 4.0).
  • Spain — "Obra derivada de CartoCiudad CC-BY 4.0 scne.es" (Instituto Geográfico Nacional / CNIG) via Overture/OpenAddresses, under CC BY 4.0; address normalization applied.
  • United States — National Address Database (USDOT) and 19 state and county open datasets via Overture/OpenAddresses, each under its own permissive licence (U.S. Government work, CC0, PDDL, CC BY 4.0, open-data terms — listed per source in the sheet manifest); address ranges from U.S. Census Bureau TIGER/Line 2025 (U.S. Government work); postal codes from GeoNames (CC BY 4.0).
  • POI layer — Overture places, mixed permissive: CDLA-Permissive-2.0 (Meta, Microsoft, …), Apache-2.0 (Foursquare), CC0-1.0 (AllThePlaces).

Per the Overture attribution page, addresses are not one blanket license — each national source carries its own. Consult your own counsel before commercial redistribution.

All of these licenses let you store geocoding results indefinitely. This is a real difference from hosted APIs: Google's terms forbid storing results and allow caching coordinates for at most 30 days, and Mapbox charges roughly 7.5× for permanent storage — at list prices of about $3,550 (Google) to $4,500 (Mapbox) per million requests per month before you even ask to keep the output (List prices as of 2026-08, 1M requests/month; see the linked provider terms). With GridPin the computation happens on your hardware, so the results are yours from the start. The grid is ours. The pin is yours.

This also matters for GDPR: the addresses you geocode are often customer data, and with GridPin they never leave your infrastructure.

Status & roadmap

v0.10.0: Poland and New Zealand added, Bavaria in Germany, a places layer for every country. Client update required. Poland: one nationwide sheet (poland.bin, 106 MB), 8.63M addresses from the PRG address points (GUGiK) in all 16 voivodeships. New Zealand: new-zealand.bin (29 MB), 2.43M addresses from LINZ NZ Addresses in all 16 regions and the Chatham Islands, without postcodes. Germany covers all 16 Länder: Bavaria comes from the LoD2 building models and has no postcodes (germany.bin, 256 MB, 22.84M addresses). Places: an optional <cc>_poi.bin next to each country sheet (Overture places 2026-10-21.0), asked when the address answer is weak. Brazil: a CEP layer (br_cep.tsv.gz, --postcode-layer). Server: routes in the Photon, Pelias, BAN, US Census and Mapbox formats, Nominatim /lookup, /v1/addresses and one shared key (GRIDPIN_SERVE_KEY). Output: format --out parts|fhir, --with fhir, --with method, DIGIPIN. Integrations: Java, LibreOffice, Power BI and Tableau, Node-RED, Airflow, Dagster and Prefect, Raycast and Alfred, WooCommerce and others (see docs). The other ten address sheets are byte for byte those of v0.9.0.

v0.9.0: new commands, a richer server and new integrations. Client update required for them. The country sheets are byte for byte those of v0.8.0, under the new v0.9.0/ path. Commands: extract (addresses in free text, confirmed by the sheet), explain, exists, format (the address as the post writes it, and the ISO 20022 PstlAdr element), cluster, slice, grammar, postcodes. Server: several country sheets in one server (--sheets), /ui to geocode a dropped CSV, /v1/suggest, /v1/extract, the Google Geocoding API format and JSONP. Also: SQLite extension files, .deb and .rpm packages, static Linux builds (musl), WebAssembly, dbt, ClickHouse, Home Assistant and more (see docs). Each command's limits are written in the documentation.

v0.8.0: Australia added. Client update required. One nationwide sheet (australia.bin, 130 MB): 11.92M addresses from G-NAF, August 2026 edition, including the external territories. Engine rules for Australian addresses (see docs). Also: a long dash in a house range reads like a hyphen, and a place name before an address is read past, in every country.

v0.7.1: the engine knows the sheets of its own release. In 0.7.0, gridpin sheets, gridpin.sheets.fetch, the npm sheets.fetch and the Docker images listed the previous release and had no Mexico; in 0.7.1 they list all ten countries, and the Mexico image ghcr.io/gridpin/gridpin:mx is published. The sheets are byte-for-byte the same as in 0.7.0; the new sheets-receipt.json (with its .sig) is the signed list of sheets, signed before the engine is built, and the engine pins it by SHA-256.

v0.7.0: Mexico added, plus spreadsheets, a local server and Docker. Client update required. One nationwide sheet (mexico.bin, 156 MB): 14.14M point addresses from the INEGI address layer (surveyed 2009–2010) with Correos de México postal codes. Engine rules for Mexican addresses (see docs). Also new: CSV/TSV in gridpin batch; gridpin serve with its own API and Nominatim-compatible /search and /reverse; Docker images per country; the weak field; gridpin sheets; gridpin parse and gridpin same; the npm package; gridpin[pandas] and gridpin[geopy].

v0.6.0: Canada added. Client update required. One nationwide sheet (canada.bin, 183 MB): 16.94M point addresses in all provinces and territories from the Statistics Canada National Address Register, Adresses Québec and the Government of Yukon (via Overture Maps, release 2026-10-21.0); answers carry the Canadian postal code. Older engines have no Canadian rules (place written before the address, Edmonton and Calgary quadrants, French street types in front, "A9A 9A9" postal codes). Use the 0.6.0 client with this release. All nine country sheets and the France POI layer use the new immutable v0.6.0/ path and a new attestation; v0.1.0/ to v0.5.0/ are unchanged.

v0.5.0: the United States added. Client update required. One nationwide sheet (usa.bin, 1.45 GB): 95.33M point addresses from sources with an explicit right to redistribute (National Address Database, New York City, Los Angeles, Oakland County, MassGIS, MnGeo, Oregon and other state and county open data) plus 34.52M address-range points from Census TIGER/Line 2025 where no point addresses exist. Point addresses cover 35 states; in CO, FL, HI, MS, NH, NV and SC answers are interpolated from address ranges (tens to hundreds of metres). Older engines have no US rules (trailing street types, directions, ZIP+4, state tails). Use the 0.5.0 client with this release. All eight country sheets and the France POI layer use the new immutable v0.5.0/ path and a new attestation; v0.1.0/ to v0.4.0/ are unchanged.

v0.4.0: Brazil added. Client update required. Brazil is one nationwide sheet covering 26 states and the Federal District; the source counts describe source presence, not address completeness. Spain covers all 52 postal provinces (incl. Ceuta and Melilla). Germany covers 15 of 16 Länder; Bavaria is not covered. Use the 0.4.0 client with this release: older engines do not contain the Brazilian rules. All seven country sheets and the France POI layer use the new immutable v0.4.0/ path and a new attestation; v0.1.0/, v0.2.0/ and v0.3.0/ are unchanged.

For an existing Python installation, use pip install --upgrade gridpin==0.10.0, not a plain install that may keep an older version.

Interfaces and file formats may still change before v1.0. Sheets are tied to the engine's format major version — keep the engine build that shipped alongside your sheets; before v1.0 a newer engine may require newer sheets.

Distribution:

  • Free — static builds of all available countries, with no update schedule. Free builds carry the same curated rules section subscribers get — you trade freshness, not quality; fresh monthly sheets are what subscriptions are for.
  • Starter, $59/mo — a subscription: one country of your choice, a fresh sheet every month.
  • Pro, $149/mo — a subscription: the full atlas (all available countries), fresh sheets monthly, priority email support.
  • Snapshot, $199 one-time — this month's fresh build of all available countries (the same sheets subscribers get), without a subscription. No updates afterwards. It costs more than one month of Pro on purpose: it is the no-subscription option — one payment, no card on file, nothing to cancel. If a subscription works for you, a month of Pro is cheaper.
  • OEM / embedding — from $1,500/yr.

Starter, Pro and Snapshot can be bought in USDC: see pricing and how buying works.

License

The code in this repository is licensed under Apache-2.0. Data files are licensed separately by source — see Data licensing & attribution.

Similar modules

Browse Maps & geocoding