Country

Geocode German addresses offline

One file for all of Germany, read locally. No server, no API key, and the addresses you geocode never leave your machine.

Get started

The file for Germany is 256 MB and holds 22.84 million addresses from Overture Maps and OpenAddresses (15 Länder) and the Bavarian building models (LoD2). 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 de         # Germany, 256 MB, verified download
geocode.pyPython
import gridpin
from gridpin_mcp import sheets

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

g.geocode("Jungfernstieg 1, 20095 Hamburg", 1)
# -> house, Jungfernstieg 1, Hamburg
g.geocode("Römerberg 23, Frankfurt am Main", 1)
# -> house, Römerberg 23, Frankfurt am Main
g.geocode("Unter den Linden 77, 10117 Berlin", 1)
# -> house, Unter den Linden 77, Mitte

Berlin addresses are recorded by district (Mitte, Charlottenburg and so on), so give the postcode with a Berlin address.

Bavaria has no postcodes. Its addresses come from the 3D building models (LoD2) of the Bavarian surveying office, which carry none, so give the town with a Bavarian address: a street and a postcode alone typically return a same-named street elsewhere with low confidence.

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