Metadata-Version: 2.5
Name: loconym
Version: 0.0.1
Summary: Build compact, offline reverse and forward geocoding databases from OpenStreetMap PBF files
Project-URL: Homepage, https://travishathaway.github.io/loconym/
Project-URL: Documentation, https://travishathaway.github.io/loconym/
Project-URL: Repository, https://github.com/travishathaway/loconym
Project-URL: Issues, https://github.com/travishathaway/loconym/issues
License-Expression: MIT
License-File: LICENSE
Keywords: geocoding,offline,openstreetmap,osm,reverse-geocoding,sqlite
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Python: >=3.11
Requires-Dist: apsw<4,>=3.54.1.0
Requires-Dist: osmium>=4
Requires-Dist: shapely>=2
Description-Content-Type: text/markdown

# 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`](https://www.npmjs.com/package/loconym), either by downloading it or by reading only the
pages a query needs through HTTP range requests. No server, no API keys.

```sh
pip install loconym
loconym build monaco-latest.osm.pbf -o monaco.sqlite
```

Extracts are available from [Geofabrik](https://download.geofabrik.de/). For country-sized inputs, also install
[osmium-tool](https://osmcode.org/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.
