GridPin
Offline forward and reverse geocoding from a memory-mapped country file. Off the grid. On the grid.
GridPin is an offline geocoder for Python, the command line, SQL and AI agents: it turns street addresses into coordinates and coordinates into street-level addresses. No API key, no server, no database import, no per-request fees, and every geocoding query stays on your machine. After you install the package and download a sheet, GridPin makes no network requests.
pip install --upgrade gridpin
The wheel contains the engine, not the data: download a country sheet separately. Free static sheets for Australia, Belgium, Brazil, Canada, France, Germany, Italy, Mexico, the Netherlands, New Zealand, Poland, Serbia, Spain and the United States are listed at https://gridpin.dev/docs#delivery — no account, no key, no sign-up.
One command does the download and the check: pip install gridpin-mcp, then
gridpin-fetch fr puts the France sheet in ~/.cache/gridpin and verifies it against the
signed release; from Python, gridpin_mcp.sheets.download("fr") returns the same path. The
same package is an MCP server for AI agents (uvx gridpin-mcp).
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.
Each country is one sheet. Limits of the sheets: Germany's Bavaria and New Zealand have no postcodes; the United States has point addresses in 35 states and Census address ranges elsewhere. Client update required: use 0.10.0 or newer, because older engines have no rules for Poland and New Zealand.
import gridpin
g = gridpin.Geocoder("france.bin")
g.geocode("8 Boulevard du Port, Amiens", 1)
g.reverse(49.8945, 2.2949, 1)
# optional POI layer (cascade built in: address index first,
# POI only on weak results, exact addresses never overridden)
g = gridpin.Geocoder("france.bin", poi="fr_poi.bin")
Common tasks
- Geocode a CSV of addresses without an API key.
gridpin batch usa.bin addresses.csv geocoded.csvadds thegp_*columns to every row; in Python,geocode_many()spreads a list across all cores. Guide: https://gridpin.dev/geocode-csv - A self-hosted alternative to Nominatim that is easy to set up. There is no database import:
gridpin serve usa.binanswers/search?q=...&format=jsonin the Nominatim format, and the Photon and Google Geocoding API formats, from one file, so an existing client changes only its base URL. Guides: https://gridpin.dev/nominatim-alternative, https://gridpin.dev/geocoding-server - Geocode addresses inside DuckDB.
INSTALL gridpin_ext FROM community;thengridpin_geocode(address)in SQL (DuckDB 1.5.6 or newer; older DuckDB versions install an older build). Guide: https://gridpin.dev/duckdb-geocoding - Offline reverse geocoding at street level.
g.reverse(lat, lon, 1)returns the nearest indexed address withdistance_m. Guide: https://gridpin.dev/reverse-geocoding - Geocoding for AI agents with no API key.
uvx gridpin-mcpis an MCP server for offline geocoding. Guide: https://gridpin.dev/mcp-geocoding - A geocoder built on Overture Maps data. Overture Maps publishes addresses from national registries; GridPin turns each country's addresses into one file. Guide: https://gridpin.dev/overture-geocoder
The engine is written in Rust (the gridpin crate on crates.io) and reads one memory-mapped file per country.
Country guides: Australia, Belgium, Brazil, Canada, France, Germany, Italy, Mexico, the Netherlands, New Zealand, Poland, Serbia, Spain and the United States.
If GridPin is useful to you, a star on GitHub helps other people find it.
Three limits worth knowing before you build on this:
-
Reverse returns the nearest indexed address — or a street-centroid approximation — together with
distance_m. It is not a rooftop fix. -
Speed: exact lookups run at ~3,000/s, measured on the France sheet and a single arm64 laptop core. Typo-tolerant fuzzy matching is much slower (tens of ms/query) — use
geocode_many()to batch. -
Places layers (
<cc>_poi.bin, one per country) are opt-in. Address lookup is the core product; the places layer is younger and never overrides an exact address match. -
Country files & docs: https://gridpin.dev/docs
-
Quality benchmark, including where other geocoders score higher: https://gridpin.dev/bench
-
Engine license: Apache-2.0. Data files carry their own source licenses — see https://github.com/gridpin/gridpin/blob/main/ATTRIBUTIONS.md
Metadata
Release files for gridpin 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gridpin-0.11.0.tar.gz | 978.2 kB | With provenance | Details for gridpin-0.11.0.tar.gz |
Built distributions (wheels)
Total release size: 12.9 MB
Release files / gridpin-0.11.0.tar.gz
| Download URL | gridpin-0.11.0.tar.gz |
|---|---|
| Size | 978.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36ffd38b515499444a3dddc0a66159ab4ffe2d688a245b38bc87d2a3e6ac9078
|
|
BLAKE2b-256 checksum How to use checksums |
ce6c718fa4a022e45fa26a5b2861915683856722b7ce9dac954c308a2b850915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / gridpin-0.11.0-cp39-abi3-win_amd64.whl
| Download URL | gridpin-0.11.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
3e5049e30b95aafd0a8952ae7db3a4745306da101af65c31cb1667bbe94130da
|
|
BLAKE2b-256 checksum How to use checksums |
d95294f9e037d93725ce70929714dc2bce17a0c00431275902e9a642192cab11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / gridpin-0.11.0-cp39-abi3-manylinux_2_39_x86_64.whl
| Download URL | gridpin-0.11.0-cp39-abi3-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.9 Linux glibc 2.39+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2ca6fbc4bb5ccdc21a1853904feec6c48512322a02ef7dfbf9c3d258bf54882e
|
|
BLAKE2b-256 checksum How to use checksums |
6420ac6872669a4bd48bc6276125df191ccece7e762bc9c1d6bb7112196c0665
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / gridpin-0.11.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | gridpin-0.11.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
eb771a81d30767b21a8d2dc2dbcc9553b5522970e41e0575d02c2481c109d32e
|
|
BLAKE2b-256 checksum How to use checksums |
185422cdfbb9b95094b0b5a39a065f7435356aee9227e564e94a54e5174e77da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / gridpin-0.11.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | gridpin-0.11.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
879c42ff1cb5113484ac0ed4e564198bb5f4d0b73ee7ba1ac0fc84a71f8e64f5
|
|
BLAKE2b-256 checksum How to use checksums |
77e948989c25a053770d1a76d76101b13f4363129b4686c2aac7eb2dd39233e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / gridpin-0.11.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | gridpin-0.11.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
139535d520b703f7b0b0004cda8bc5e2c04ffd9c1f682e1e75c5d46f0652ae0c
|
|
BLAKE2b-256 checksum How to use checksums |
e760f9ad6a7ec25fbdaf244a767df8580dce6cfb787729a004e8476ce7b5565c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / gridpin-0.11.0-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | gridpin-0.11.0-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
e8d6a5eef01ca968442eb1e0d686409142b4c48483473698b49df06f26c9a3d2
|
|
BLAKE2b-256 checksum How to use checksums |
3f0662e20bb3dcb5e7d3e13e719a68c2974ffa02b10ed466475634baa5e2e119
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for gridpin 0.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 7 files in this release have been uploaded with provenance metadata.
Attestation for gridpin-0.11.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.