Documentation
Everything you need to go from an empty directory to millisecond, fully offline geocoding: one engine, a data file per country (a few regions add a small companion file), and every way to call it, listed below.
Get started in 5 minutes
GridPin is an offline geocoder: a country in a memory-mapped file (most are a single file; some regions add a small companion, POI is separate), forward and reverse lookups in milliseconds. Throughput is entirely query-shape dependent — exact lookups run at ~3,000/s per core and reverse at ~1,800/s, while typo-tolerant fuzzy matching is much slower (tens of ms per query); see the benchmarks. No server, no database import; once the files are on disk, no query leaves your machine. To look before installing, open the live demo (it runs on Streamlit's server).
Download a sheet
A sheet is a data file per country — France is a single 365 MB file with 26.1M addresses; most countries are one file, though a few regional datasets add a small companion and the optional POI layer is separate. Put it anywhere on disk.
Direct downloads, no account, no key, no sign-up:
usa.bin ·
canada.bin ·
germany.bin ·
france.bin ·
italy.bin ·
spain.bin ·
australia.bin ·
mexico.bin ·
netherlands.bin ·
brazil.bin ·
serbia.bin
What each file contains, sizes, checksums and the signed attestation: Getting the files.
Grab the CLI
One self-contained binary from the releases page — download, unpack, put on PATH (see Install below). It memory-maps the sheet on first use and is ready instantly.
Query
Forward, reverse, or batch. Every query runs on your machine; not a byte of what you geocode leaves it.
Install
CLI. Prebuilt self-contained 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; any other target
(Intel macOS, Linux arm64/musl, Windows arm) builds from source:
# macOS (Apple silicon) example; pick your platform archive $ base=https://github.com/gridpin/gridpin/releases/download/v0.8.0 $ curl -fsSLO "$base/gridpin-aarch64-apple-darwin.tar.gz" $ curl -fsSLO "$base/gridpin-release-signers" $ curl -fsSLO https://dl.gridpin.dev/v0.8.0/attestation.json $ curl -fsSLO https://dl.gridpin.dev/v0.8.0/attestation.json.sig # unpacking runs its contents sooner or later — authenticate first. The trust root comes # from the OTHER channel: whoever owns one can swap the archive AND its checksum line. $ 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; } # extract the EXPECTED hash from the attestation you just authenticated, then COMPARE. # Printing a hash is not a check: something has to fail when it differs. $ 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/ $ gridpin --help # or build from source (stable Rust) $ cargo build --release --manifest-path gridpin/Cargo.toml
Python. pip install gridpin
DuckDB. Two ways to get gridpin_ext:
-- 1. from DuckDB's own community catalog, which signs and verifies the extension -- there; that trust root is DuckDB's, not ours. The current release needs DuckDB 1.5.6 or newer; -- older DuckDB versions install an older build: INSTALL gridpin_ext FROM community; LOAD gridpin_ext; -- the catalog can lag our releases: Germany needs 0.2.0+, Spain needs 0.3.0+, Brazil needs 0.4.0+, the United States needs 0.5.0+, Canada needs 0.6.0+, Mexico needs 0.7.0+, Australia needs 0.8.0+ SELECT extension_version FROM duckdb_extensions() WHERE extension_name = 'gridpin_ext';
# 2. 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 loadable code, so authenticate it BEFORE loading — see "Verifying a release" # in the README; the trust root comes from the other channel, never from the download. $ 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; } # The file inside is named gridpin_ext.duckdb_extension — keep that name: DuckDB derives # the entry symbol from the file's basename, so it must load as gridpin_ext. $ unzip gridpin_ext-osx_arm64.zip $ duckdb -unsigned
LOAD '/path/to/gridpin_ext.duckdb_extension';
Forward geocoding
Address in, ranked candidates out. -k sets how many candidates you want.
$ gridpin query france.bin "1 rue de la Paix Paris" -k 3
Reverse geocoding
Coordinates in, nearest known address out — with a precision flag and its distance, so an approximate hit is never dressed up as exact.
$ gridpin reverse france.bin 48.8686 2.3305
Batch mode and spreadsheets
JSON Lines in ({"q": "1 rue de la Paix Paris"} per line), JSON Lines out ({"results": […candidates…]} per line, order preserved).
This is the fastest path for large jobs.
$ gridpin batch france.bin in.jsonl out.jsonl -k 1
A .csv, .tsv or .tab file comes back with all its columns plus gp_lat, gp_lon, gp_precision,
gp_confidence, gp_weak, gp_street, gp_housenumber, gp_postcode, gp_commune, gp_region. The address column
is address, query or q, or name it with --column (several columns are joined with a comma). Every row stays,
in order; a row without an answer keeps empty gp_* cells. Input must be UTF-8 (in Excel: Save As → CSV UTF-8).
-k 3 gives up to three rows per address with gp_rank.
$ gridpin batch usa.bin addresses.csv geocoded.csv $ gridpin batch usa.bin orders.csv geocoded.csv --column "street,city,zip" --delimiter ";"
Local server
gridpin serve usa.bin listens on 127.0.0.1:8080. GET /v1/geocode?q=… answers {"results": [...]}, the
same JSON as one line of gridpin batch; POST /v1/geocode takes {"queries": [...]} (up to 10 000). GET
/search, /reverse and /status answer in the Nominatim format (json, jsonv2, geojson), so geopy and Leaflet Control
Geocoder work with a changed base URL. What differs from Nominatim: no osm_type/osm_id, no polygons, no XML, one
country per process. /health reports the sheet and turns ok once the start-up warming is done (about 20 s on the
United States file). Recipe with geopy: a local geocoding server; in a container:
Docker.
$ gridpin serve usa.bin --port 8080
Sheets
gridpin sheets list, gridpin sheets where [cc], gridpin sheets verify [cc|file],
gridpin sheets fetch cc [--offline]: the cache folder is shared with gridpin-mcp (GRIDPIN_HOME,
$XDG_CACHE_HOME/gridpin, ~/.cache/gridpin), downloads go through the system curl,
and GRIDPIN_OFFLINE=1 keeps everything local.
Parse and compare addresses
gridpin parse usa.bin "<address>" prints how the engine reads the line; gridpin same usa.bin "<a>" "<b>"
says whether two lines name the same place, and --pairs in.jsonl out.jsonl does it for a file of
{"a", "b"} lines. From Python: Geocoder.parse and Geocoder.same_address. The level is
house, street, commune, different or unknown; house is given only when
neither answer is weak, and when a line has no answer the verdict carries a text comparison instead.
Observed on Wikidata pairs: a clean address and its mechanically distorted copy (same place), and 3,000 pairs of different addresses in one commune (truth farther apart than 150 m). Engine 09238e49 (0.7.0), 2026-11-01.
| Country | Same-place pairs | house | street | unknown | Different-place pairs | called house |
|---|---|---|---|---|---|---|
| United States | 3,655 | 53.8% | 23.5% | 19.5% | 3,000 | 1 |
| Canada | 2,785 | 56.2% | 33.0% | 9.6% | 3,000 | 0 |
| France | 2,317 | 36.0% | 35.8% | 23.7% | 3,000 | 1 |
| Italy | 2,535 | 37.2% | 35.7% | 20.2% | 3,000 | 0 |
| Spain | 1,591 | 28.2% | 21.3% | 35.6% | 3,000 | 2 |
| Mexico | 909 | 15.8% | 13.1% | 59.0% | 3,000 | 0 |
| Netherlands | 4,222 | 61.6% | 12.2% | 19.2% | 3,000 | 1 |
| Brazil | 2,376 | 29.7% | 13.3% | 44.3% | 3,000 | 2 |
| Serbia | 671 | 38.7% | 10.1% | 50.7% | 3,000 | 2 |
pip install --upgrade gridpin==0.8.0.
Links on this page target the v0.8.0 release and its attestation.
The previous v0.1.0 to v0.5.0 releases remain unchanged.
Python
The same engine as a wheel. Exact lookups run at ~3,000/s per core from Python;
use geocode_many(), the CLI batch mode, or DuckDB to spread messy input across cores.
$ pip install gridpin
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. Without extras the wheel still has no dependencies; [geopy] adds the geopy class.
To fetch a sheet in one step, add gridpin-mcp: gridpin-fetch fr downloads the
France sheet into ~/.cache/gridpin, checks its size and SHA-256 against the signed release, and
prints the path; gridpin_mcp.sheets.download("fr") does the same from Python. Country codes:
br de es fr it nl rs.
import gridpin g = gridpin.Geocoder("france.bin") # mmap, opens instantly # forward: query, k candidates hits = g.geocode("1 rue de la Paix Paris", 1) # reverse: lat, lon, k candidates addr = g.reverse(48.8686, 2.3305, 1) # exact lookups ~3,000/s per core
Results are plain objects with the same fields as the JSON response format below.
DuckDB extension
Geocode whole tables without leaving SQL. Load the extension, point it at a sheet, and call scalar functions in your queries.
LOAD gridpin_ext; SELECT gridpin_load('france.bin'); -- forward: one JSON result per row SELECT gridpin_geocode(address) FROM orders; -- reverse: nearest address per coordinate pair SELECT gridpin_reverse(lat, lon) FROM pings;
Both functions return the standard JSON response as a string;
unpack fields with DuckDB's json_extract or the ->> operator.
Switching sheets. One index per session. Loading the same sheet again is a no-op;
loading a different sheet is a hard error — it never silently replaces the
loaded index. Switch explicitly with gridpin_reset(), which must be its own
statement, then load the new sheet:
SELECT gridpin_load('france.bin'); -- index loaded SELECT gridpin_load('italy.bin'); -- ERROR: 'italy.bin' while 'france.bin' is loaded; run gridpin_reset() SELECT gridpin_reset(); -- index unloaded SELECT gridpin_load('italy.bin'); -- index loaded
MCP server
gridpin-mcp exposes GridPin to AI agents over the Model Context Protocol. It runs on the
user's machine over stdio; geocoding never leaves it, and the only network step is the one-time sheet
download, checked against the signed release.
$ claude mcp add gridpin -- uvx gridpin-mcp
{ "mcpServers": { "gridpin": { "command": "uvx", "args": ["gridpin-mcp"] } } }
Tools: list_countries, download_sheet (the only one that uses the network),
geocode, reverse and batch (up to 1,000 addresses per call). Results
have the response format below. The server is listed in the MCP Registry as
io.github.gridpin/gridpin-mcp; source in
mcp/.
All ways to use it
One engine and the same country files behind every interface. Each one is described on this page or on its own guide; pick the one that matches where your addresses are.
- Command line:
gridpin query,gridpin reverse,gridpin batch,gridpin sheets,gridpin parse,gridpin same,gridpin meta. - Spreadsheets (CSV, TSV):
gridpin batchkeeps every column and addsgp_*; recipe: geocode a CSV. - Local server, Nominatim-compatible: a local geocoding server.
- Docker: one image per country, offline geocoding in Docker.
- Python, with pandas and geopy: offline geocoding in Python, GeoPandas.
- R: offline geocoding in R.
- Node.js: the
gridpinpackage on npm. - DuckDB: geocode inside DuckDB.
- QGIS: the GridPin Geocoder plugin.
- AI agents (MCP): geocoding for AI agents; LangChain tools.
- Rust: the
gridpincrate.
Every recipe and every country page: guides.
R
The R package gridpin from R-universe: binary packages for Windows and macOS, a Rust build from source elsewhere.
Answers carry precision, confidence and weak; sf = TRUE returns sf points.
Recipe with DuckDB and sf: offline geocoding in R.
install.packages("gridpin", repos = c("https://gridpin.r-universe.dev", "https://cloud.r-project.org")) library(gridpin) gp_download("us") # once: fetched and checked against the release checksums gp_geocode("1600 Pennsylvania Ave NW, Washington, DC 20500", "us")
Node.js
npm install gridpin (Node.js 18 or newer) brings the engine for Linux x64 and arm64, macOS on Apple silicon and
Windows x64; no build step. sheets.fetch downloads a country once and checks it against the signed release;
the cache folder is shared with the CLI and gridpin-mcp.
const { Geocoder, sheets } = require("gridpin"); const g = new Geocoder(await sheets.fetch("us")); g.geocode("1600 Pennsylvania Ave NW, Washington, DC", { k: 1 }); g.geocodeMany(["233 S Wacker Dr, Chicago", "350 5th Ave, New York"]); // one list per row g.reverse(38.8977, -77.0365);
QGIS
The GridPin Geocoder plugin (QGIS 3.44 or newer): Plugins →
Manage and Install Plugins → Settings → Show also experimental plugins, then search “GridPin”.
Processing → GridPin → Download country sheet, then Geocode address field turns any layer or table
into points (rows without a match keep no geometry); the locator bar answers gp <address>. The plugin
version in the catalog may trail a release by a few days; it lists the countries it knows.
LangChain
pip install langchain-gridpin gives two tools, GridPinGeocode and GridPinReverse, for any
chat model with tool calling; the answers are the response format below, and nothing leaves the machine.
from langchain_gridpin import GridPinGeocode, GridPinReverse, download_sheet download_sheet("us") # once GridPinGeocode(country="us").invoke({"query": "1600 Pennsylvania Ave NW, Washington, DC 20500"})
Docker
One image per country with the file inside, and an engine image for a file you mount; the server inside is
gridpin serve on port 8080. Tags, compose and the engine image: offline geocoding in Docker.
$ docker run --rm -p 127.0.0.1:8080:8080 ghcr.io/gridpin/gridpin:us
Rust
The engine is the gridpin crate: cargo add gridpin, API reference on
docs.rs. The crate also installs the command-line program: cargo install gridpin.
Response format
Every interface — CLI, Python, DuckDB, MCP — returns the same result shape. One object per candidate, best match first.
{
"lat": 48.8686,
"lon": 2.3305,
"precision": "house",
"score": 412.0, // illustrative values
"confidence": 0.84,
"street": "Rue de la Paix",
"housenumber": "5",
"commune": "Paris 2e Arrondissement",
"postcode": "75002",
"flags": ["street_exact", "commune_prefix", "house_rep"],
"weak": false
}
| Field | Type | Meaning |
|---|---|---|
lat, lon |
float | WGS84 coordinates of the pin. |
precision |
enum |
How exact the pin is:
house — forward: exact point for the requested house number; reverse: the nearest house is within 50 m
interp — interpolated along the street between known numbers
near — forward: snapped to the nearest known number on the street; reverse: the nearest house is 50–250 m from your point
street — street-level match, no usable house number
city — locality-level match only
approximate — reverse only: the nearest known house is more than 250 m away
|
score |
float | Raw ranking score used to order candidates. Comparable within one query, not across queries. |
confidence |
float 0..1 | Ordering estimate 0..1; on some sheets a higher band is not more accurate (see Confidence bands). For a cut-off, use weak. |
weak |
bool | true when the engine itself says the answer needs a check before use: city level, confidence below 0.30, or a fuzzy street below 0.60. An exact house on an exact street is never weak. |
street |
string | Matched street name, as stored in the sheet (forward and reverse alike — the house number is never glued into it). |
housenumber |
string, optional | House number with its suffix ("27", "12bis"). Present when a house is resolved: forward exact/near answers report the stored matched number, interpolation reports the requested number, and reverse reports the nearest house. Omitted for street/city-only answers. |
commune |
string | Matched municipality / locality. |
postcode |
string | Postal code of the matched address, when the source data has one. |
flags |
string[] | Match explanation (street_exact/street_fuzzy,
commune_exact/commune_prefix, house_rep,
pc_exact/pc_dept, ml,
poi_layer). Omitted entirely when empty — treat a
missing key as []. |
distance_m |
float, optional | Reverse queries only: metres from the queried point to the returned address. |
region |
string, optional | Administrative region of the pin, where the sheet carries admin polygons. |
Confidence bands
Addresses with a known point (300 per country)
The true point is the address itself, so this is the share to expect on real address lists.
| Country | [0.0, 0.3) | [0.3, 0.5) | [0.5, 0.7) | [0.7, 0.9) | [0.9, 1.0] | weak = false | weak = true |
|---|---|---|---|---|---|---|---|
| United States | 43 % of 7 | 89 % of 102 | 100 % of 1 | 92 % of 13 | 100 % of 171 | 96 % of 281 | 69 % of 13 |
| Canada | 75 % of 4 | 80 % of 76 | 100 % of 4 | 86 % of 14 | 97 % of 197 | 92 % of 288 | 86 % of 7 |
| Brazil | 13 % of 31 | 8 % of 13 | 90 % of 21 | 94 % of 99 | 74 % of 27 | 90 % of 147 | 11 % of 44 |
| Germany | 6 % of 16 | 84 % of 19 | 91 % of 94 | 100 % of 36 | 97 % of 109 | 92 % of 267 | 0 % of 7 |
| Spain | 33 % of 21 | 78 % of 23 | 79 % of 19 | 91 % of 177 | 100 % of 23 | 90 % of 225 | 55 % of 38 |
| Australia | 0 % of 2 | 92 % of 40 | — | — | 96 % of 258 | 96 % of 298 | 0 % of 2 |
| Mexico | 41 % of 61 | 69 % of 52 | 86 % of 37 | 88 % of 34 | 94 % of 36 | 83 % of 145 | 49 % of 75 |
| France | 100 % of 3 | 90 % of 20 | 100 % of 1 | 97 % of 35 | 99 % of 236 | 98 % of 291 | 100 % of 4 |
| Italy | 0 % of 6 | 78 % of 27 | 75 % of 8 | 86 % of 35 | 92 % of 206 | 89 % of 277 | 0 % of 5 |
| Netherlands | 100 % of 1 | 92 % of 25 | 75 % of 4 | 86 % of 7 | 98 % of 262 | 97 % of 297 | 100 % of 2 |
| Serbia | 0 % of 2 | 59 % of 17 | — | 100 % of 12 | 93 % of 267 | 91 % of 296 | 50 % of 2 |
Wikidata objects with an address
The true point is the object (a museum, a station), which can stand far from its street address; shares are lower because of the truth, not only the engine.
| Country | [0.0, 0.3) | [0.3, 0.5) | [0.5, 0.7) | [0.7, 0.9) | [0.9, 1.0] | weak = false | weak = true |
|---|---|---|---|---|---|---|---|
| United States | 13 % of 1182 | 37 % of 571 | 50 % of 636 | 53 % of 147 | 71 % of 935 | 51 % of 2552 | 13 % of 919 |
| Canada | 29 % of 924 | 48 % of 178 | 77 % of 1135 | 77 % of 39 | 81 % of 422 | 69 % of 2042 | 29 % of 656 |
| Brazil | 9 % of 592 | 28 % of 117 | 54 % of 673 | 46 % of 67 | 66 % of 102 | 55 % of 862 | 12 % of 689 |
| Spain | 23 % of 517 | 62 % of 120 | 65 % of 57 | 77 % of 316 | 91 % of 124 | 77 % of 568 | 27 % of 566 |
| Mexico | 21 % of 529 | 49 % of 247 | 77 % of 205 | 63 % of 121 | 83 % of 145 | 70 % of 669 | 20 % of 578 |
| France | 22 % of 819 | 37 % of 231 | 53 % of 401 | 89 % of 385 | 74 % of 206 | 66 % of 1193 | 23 % of 849 |
| Italy | 20 % of 1191 | 66 % of 239 | 45 % of 212 | 73 % of 203 | 85 % of 353 | 59 % of 1185 | 23 % of 1013 |
| Netherlands | 27 % of 931 | 71 % of 279 | 59 % of 2369 | 76 % of 51 | 92 % of 240 | 58 % of 3401 | 29 % of 469 |
| Serbia | 22 % of 215 | 33 % of 9 | 37 % of 299 | 72 % of 40 | 86 % of 14 | 41 % of 457 | 12 % of 120 |
Observed on the published benchmark sets, engine f2dea2f0b9dc, 2026-11-05: share of answers within 150 m of the true point, by confidence band, top answer only. These are observations, not guarantees.
Empty results: the CLI prints nothing (exit 0), Python returns an
empty list, DuckDB's gridpin_geocode/gridpin_reverse return the
string '{}'.
POI layer
Addresses are the core index. Places — "pharmacie gare de Lyon" — live in an opt-in, separate file, currently for France: 231 MB of Overture places.
How the cascade works
The POI layer never sits inside the address index — it is a second file, and the engine runs the cascade for you when you pass it:
# CLI $ gridpin query france.bin "pharmacie gare de Lyon" --poi fr_poi.bin -k 1 # Python g = gridpin.Geocoder("france.bin", poi="fr_poi.bin") -- DuckDB SELECT gridpin_load_poi('fr_poi.bin'); -- after gridpin_load(...)
Cascade rules (built in): 1) the address index answers first; 2) the POI file is
consulted only when the address result is empty, city-level or low-confidence;
3) an exact address match is never overridden. POI answers carry a
"poi_layer" flag. Without --poi the engine behaves exactly
as before — the layer is strictly opt-in.
Honest numbers. On a name-plus-city POI pilot with Wikidata coordinates as truth (France), GridPin with the POI layer resolves 49% of queries within 500 m (62% within 2 km). Photon resolves 71% within 500 m on the same set — it is stronger on POIs today. The layer is young and opt-in: address lookup is the core product, POI is an adjacent capability we are still building out.
Building sheets yourself
The prep/ pipeline that produces sheets is public: plain DuckDB SQL
from raw source data to the finished file. You can build a working sheet for any
supported country end-to-end. Official sheets differ in one part: the curated
per-country rules section is private, so a self-built sheet runs on the engine's
built-in defaults.
Try it on Monaco
Monaco is the smallest end-to-end example: it builds a sheet from a raw OSM extract. The same target runs in CI as a public smoke test with 23 live-query checks.
$ make mc # build the Monaco sheet from an OSM extract $ make smoke # build Monaco + run the 23 live-query checks CI runs
Under the hood the targets run gridpin build, which turns the sorted CSV stream from prep/ into a
sheet; gridpin repack replaces the provenance record of a finished sheet without rebuilding its data, and
gridpin meta prints it.
Full countries
The same pipeline builds any country in the atlas, but plan for it: a full-country build takes hours and tens of gigabytes of temporary disk for the source data and intermediate tables. That is exactly the work the subscription buys you out of — fresh, tested sheets arrive monthly; the free tier is static, with no update schedule.
Getting the files
Everything published today is free and needs no key, no account and no sign-up. Download only the file of the country your addresses are in: each file is one country, ready to query on its own. Click a file name to download it.
| File | What’s inside | Size |
|---|---|---|
usa.bin | United 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. | 1.45 GB |
canada.bin | Canada. 16.94M addresses in all provinces and territories. | 183 MB |
germany.bin | Germany. 19.27M addresses in 15 of 16 Länder. Bavaria is not covered. | 213 MB |
france.bin | France. 26.1M addresses from the national registry (BAN). | 365 MB |
italy.bin | Italy. 25.9M addresses. | 247 MB |
spain.bin | Spain. 15.27M addresses in all 52 postal provinces, including Ceuta and Melilla. | 185 MB |
australia.bin | Australia. 11.92M addresses in all states and territories, including the external territories. | 130 MB |
mexico.bin | Mexico. 14.14M addresses in all 32 states, from an address layer surveyed in 2009–2010. | 156 MB |
netherlands.bin | Netherlands. 9.9M addresses. | 103 MB |
brazil.bin | Brazil. 67.19M addresses in 26 states and the Federal District. | 677 MB |
serbia.bin | Serbia. 2.6M addresses. | 32 MB |
fr_poi.bin | France, places. Optional add-on to france.bin: places by name, such as “pharmacie gare de Lyon”. Not needed to geocode addresses. | 231 MB |
How old each sheet's data is, and what an outdated sheet costs: freshness. The engine binaries, the checksums and the signed provenance attestation are on the GitHub releases page.
Every sheet carries its provenance inside the file: gridpin meta france.bin
prints the source, its license, the source release and the attribution you need when you
redistribute. The release additionally ships verify_release.py, which checks the
owner’s signature over the whole set — see
Verifying a release.
A published sheet is a static build: it does not change under you, and no refresh schedule is promised. Regularly rebuilt sheets come with the paid plans: Paid plans.
Buying a plan and getting your sheets
Starter, Pro and Snapshot are sold for USDC through MoonPay Commerce. You pay from your own crypto wallet; MoonPay Commerce does not hold the money, it forwards the payment to us and keeps its processing fee. Card payment is not available yet. You buy on the buy page; the plans are compared on the home page. The rules, including refunds, are in the terms, and what data the payment involves is on the privacy page.
- Choose a plan on the buy page; for Starter, also your country.
- Pay. Press “Continue to payment”. MoonPay Commerce opens a checkout page for exactly the listed price; enter your email there, connect your wallet and confirm. On-chain payments are final, so check the amount before you confirm. MoonPay Commerce emails you a receipt.
- Your order page. You come straight back to it. It waits for the payment to be confirmed, then shows a Download button for every file. A button makes a link for that one file and starts the download; if it stops, press it again for a new link.
- Your key. The page shows it once, so save it. It is the password to this purchase: the order page works for 72 hours, and after that, when new sheets are out, or after you renew, you open your files with the key. Lost it? Write to support@gridpin.dev with the email you paid with and the Transaction ID from the MoonPay receipt. The new page goes only to the email of the payment; if your letter comes from another address, we ask there first, and your old key keeps working until then. We never ask for the secret phrase of your wallet.
- From a program. The key also lists and downloads your files:
# what your plan covers right now curl -H "Authorization: Bearer $GRIDPIN_KEY" https://api.gridpin.dev/latest.json # each entry carries a ready url url=$(curl -s -H "Authorization: Bearer $GRIDPIN_KEY" https://api.gridpin.dev/latest.json | jq -r '.sheets[0].url') curl -LO -H "Authorization: Bearer $GRIDPIN_KEY" "https://api.gridpin.dev$url"
Limits. A link lives for 1 to 7 hours depending on the file and is good for two downloads. Each file can be downloaded 5 times a day and 20 times a month. Every copy carries a mark of your purchase, so a shared link, key or file can be traced, and sharing them ends your access (terms).
Subscriptions renew by hand. A crypto wallet cannot be charged automatically. Press Renew on your
files page, or pay the link MoonPay Commerce emails you before a period ends. You can pay early: the next period
starts when the current one ends, and the key stays the same. If you do not pay,
nothing is charged: access simply ends when the paid period runs out. Every build we publish while the
subscription is paid appears in latest.json.
Snapshot is one payment for this month's build of every available country, with a 14-day window to download it. The files are yours to keep and use for as long as you like; there are no updates afterwards.
Starter covers one country, which you choose on the buy page before you pay. Your key opens only that country's sheets. Chose the wrong one? Write to support@gridpin.dev before you download a file and we will change it. A second country, or moving to Pro, is a separate purchase with its own key.
Need a plan the page does not list (OEM)? Write to contact@gridpin.dev.
Frequently asked questions
Can I load two countries at once?
CLI and Python: yes — open one Geocoder per country (each is
just an mmap). DuckDB: one index per session — loading the same sheet again is a
no-op, but loading a different sheet is refused. Switch explicitly with
SELECT gridpin_reset(); then gridpin_load the new sheet (or use
a separate session per country); see switching sheets.
Can I store the results?
Yes — forever. Everything GridPin computes on your machine is yours: cache it, load it into your database, ship it inside your product.
How does this work with GDPR?
Your data never leaves your infrastructure: no API call to geocode, no third-party processor, no telemetry — the geocoder runs where your data already lives. The only network action is downloading a sheet yourself, and a downloaded sheet carries no query data.
Does it really work offline?
Fully. The engine needs only the sheet file on disk. Air-gapped VPC, a laptop on a plane, a box in a basement — all the same to GridPin.
How often is the data updated?
Monthly on subscription. Free builds are static — no update schedule — and carry the same curated rules section subscribers get: you trade freshness, not quality. Each sheet states its source and build date.
If GridPin is useful to you, a star on GitHub helps other people find it.