alt.hn

3/19/2026 at 2:38:51 PM

Hyper-optimized reverse geocoding API

https://github.com/traccar/traccar-geocoder

by tananaev

3/19/2026 at 2:38:51 PM

Self-hosted reverse geocoder with sub-millisecond query latency. C++ builder parses OSM PBF files into a compact binary index using S2 geometry cells. Rust server memory-maps the index and serves a Nominatim-compatible API. Docker support with automatic HTTPS.

by tananaev

3/19/2026 at 4:13:18 PM

How long does it take to build the whole index?

by gniv

3/19/2026 at 7:16:06 PM

It took about 8-10 hours for me on a 192GB Hetzner cloud machine. The resulting index was just 18GB, so once the index is created it's really efficient and you can easily run it on a small VM.

by tananaev

3/19/2026 at 4:47:19 PM

I tried the "Australia and Oceania" pbf which is really small and it took ~15min

by KomoD

3/19/2026 at 3:53:28 PM

Great. But look at the query feature of OSM. Try it. At higher zoom levels like 15, querying for features at the same coordinates as your example reveals nearby features. Like hotel buildings, post offices, recycling points, etc. The nominatin format is not enough. What is more, an extended feature set could be used together with an LLM. I am very interested in that, so, feel free to reach out to me if you want to discuss more.

by macrolet

3/19/2026 at 4:24:35 PM

> docker run -e PBF_URLS="https://download.geofabrik.de/planet-latest.osm.pbf"

Geofabrik doesn't offer a "planet" pbf.

by KomoD

3/19/2026 at 7:20:13 PM

Good catch, thanks. Updated the readme. The planet can be downloaded directly from OSM.

by tananaev

3/19/2026 at 3:58:37 PM

I don’t get the point in writing another geocoder when such programs already exist, e.g: https://pelias.io/

by supriyo-biswas

3/19/2026 at 7:17:58 PM

Most or all existing solutions are universal (not just reverse geocoding) and rely on database. The purpose of this project is to make it super fast to do one thing. The result is 100x - 1000x speed of Pelias and other universal tools like that.

by tananaev

3/19/2026 at 6:07:14 PM

I don't get the point in making other types of food when pizza already exists.

by ranger_danger

3/19/2026 at 3:52:33 PM

I just want a regular (non-reverse) geocoding system that's actually easy to self-host.

Windows CE apps were doing this 20 years ago with single file databases of only a few GBs, why do I need a 500GB+ postgres monster to do the same thing today?

by majorchord

3/19/2026 at 5:28:15 PM

Have you tried MOTIS with only the geocoding enabled? This should be 1-2 orders of magnitude smaller.

by felixguendling

3/20/2026 at 1:33:37 AM

[dead]

by 0xflashy19

3/19/2026 at 9:20:45 PM

[dead]

by bitnadaoficia25

3/19/2026 at 3:37:53 PM

[dead]

by Heer_J