Geocode Polish addresses offline
One file for all 16 voivodeships, read locally. No server, no API key, and the addresses you geocode never leave your machine.
Get started
The file for Poland is 106 MB and holds 8.63 million addresses from the PRG address points of GUGiK, all 16 voivodeships (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.
$ pip install gridpin-mcp # includes the engine $ gridpin-fetch pl # Poland, 106 MB, verified download
import gridpin
from gridpin_mcp import sheets
g = gridpin.Geocoder(str(sheets.download("pl"))) # no-op once downloaded
g.geocode("ul. Marszałkowska 10, 00-590 Warszawa", 1)
# -> house, ulica Marszałkowska 10/16, Warszawa, 00590
g.geocode("marszalkowska 10 warszawa", 1)
# -> the same house
g.geocode("pl. Zamkowy 1, Warszawa", 1)
# -> house, Plac Zamkowy 1/13, Warszawa, 00267
g.geocode("os. Piastów 1, Kraków", 1)
# -> house, Osiedle Piastów 1, Kraków, 31623
g.geocode("Warszawa-Mokotów, ul. Puławska 100", 1)
# -> house, ulica Puławska 100, Warszawa, 02620
g.geocode("Zawoja 1234", 1)
# -> house, Zawoja 1234, 34222
ul. is read past, and al., pl. and os. are read as aleja, plac and osiedle. A flat after the slash is read past (21a/20), a house stored as 10/16 is found by 10, and letters may be written without diacritics (Lodz). In a village without streets the address is the village and the number. 31-042 Kraków answers with the town, with low confidence. A name of a building or a station alone (Dworzec Centralny) finds the town or a weak answer; the places layer answers some of them.
Data source: Państwowy Rejestr Granic (PRG), address points, Główny Urząd Geodezji i Kartografii (GUGiK). No licence is issued for this data and it is free to use; the source must be named.
How often it finds the right house, compared with Nominatim and Photon on independent truth: benchmark. Try it without installing: the live demo (pick Poland in the list), or the Colab notebook (set COUNTRY = "pl").