loconym
Build compact, offline reverse and forward geocoding databases from OpenStreetMap PBF files
Downloads & Community Adoption
Health & Engineering Analysis (5 Pillars)
1. Governance & Community50 / 200 ▾
2. PEP Metadata & Packaging200 / 200 ▾
3. Security & Supply Chain200 / 200 ▾
4. Documentation, SEO & Ecosystem155 / 200 ▾
5. Engineering, CI & Quality165 / 200 ▾
Official Documentation & Usage Guide — loconym
Show full original documentation (English README) ▾
loconym
Build compact, offline geocoding databases from OpenStreetMap .osm.pbf extracts.
loconym build turns an extract into a single SQLite file that supports:
- reverse geocoding: lat/lon → address (house number, street, suburb, city, state, country)
- search: address text → lat/lon, with type-ahead, house numbers and address interpolation
The file is queried in the browser by the TypeScript client
loconym, either by downloading it or by reading only the
pages a query needs through HTTP range requests. No server, no API keys.
pip install loconym
loconym build monaco-latest.osm.pbf -o monaco.sqlite
Extracts are available from Geofabrik. For country-sized inputs, also install
osmium-tool (e.g. conda install -c conda-forge osmium-tool) so the builder
can pre-filter the input and keep memory bounded.
Documentation: https://travishathaway.github.io/loconym/
Data © OpenStreetMap contributors (ODbL). License: MIT.