Hacker News new | past | comments | ask | show | jobs | submit login
RGCosm – Reverse Geocode for OpenStreetMap (github.com/punnerud)
46 points by punnerud 68 days ago | hide | past | favorite | 6 comments



In case anyone is wondering:

Reverse geocode is `coordinates -> address`.

https://en.wikipedia.org/wiki/Reverse_geocoding.

Geocoding is `address -> coordinates`.


Should be possible to both with the same database. Should maybe add that (did not have the need for it myself).

Playing with the idea to add two intersecting streets and find the coordinate where they are crossing


Also recommend checking out this fork: https://github.com/BlackCatDevel0per/rgcosm

Added CLI and import to Python


Have you requested a PR from parent? I don't see any open or closed PRs on the parent repo, and this seems very useful.


I just did something similar with openstreetmaps last week. In my case I tried the other way around (finding similar addresses)

I benchmarked fts(sqllite) Vs typesense.

Which I can only recommend for such tasks.

repo: https://github.com/K0IN/open_streetmaps_typesense

btw I also tried the python import but it was unusable (for Germany) slow so I switched to osmtools and exported it to Jason first which is way faster.


Kinda OT but in that context, anyone know of a minimal reverse geocoding yhat has resolution of country, state, county for The entire world?

With mobile devices size matters…




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: