Live data from Hacker News

A fast, offline reverse geocoder in Python

github.com

1–10 of 46 posts

Re: A fast, offline reverse geocoder in Python

#6

Starred. We're currently using nominatim + osm data + postgis on our own hosted servers. Can this be a good alternative?

I should think so. I've tried nominatim/osm data but it took forever to query a large set of coordinates. I was only interested in knowing the nearest city and admin regions 1/2. And this library is really fast... ~20s to lookup 10M coordinates on my MBP. If you'd however like to know the full address, then this is maybe not a good idea.

Re: A fast, offline reverse geocoder in Python

#8

Starred. We're currently using nominatim + osm data + postgis on our own hosted servers. Can this be a good alternative?

For reverse geocoding only as it does not seem to do geocoding proper. Pelias[1] might be a better alternative once they simplified the install process. I had to "reverse engineer" (aka read and understand) their chef cookbook as a Vagrant was not an option form me. Not that complicated but time consuming when don't know Chef.

[0] - https://github.com/pelias

Re: A fast, offline reverse geocoder in Python

#9

Looks really interesting! Would it be possible to use OpenStreetMap data? http://planet.openstreetmap.org/

That is interesting. I haven't looked at that data set. At the moment, this only looks at cities with a population > 1000 obtained from GeoNames.

Re: A fast, offline reverse geocoder in Python

#10

Starred. We're currently using nominatim + osm data + postgis on our own hosted servers. Can this be a good alternative?

I should think so. I've tried nominatim/osm data but it took forever to query a large set of coordinates. I was only interested in knowing the nearest city and admin regions 1/2. And this library is really fast... ~20s to lookup 10M coordinates on my MBP. If you'd however like to know the full address, then this is maybe not a good idea.

That's fast. Though yes, our use case involves reverse geo of full street level addresses. Currently we do several 10s to 100s of req/s on nominatim.

The sibling thread asked about using OSM data; it'd be awesome if street level OSM data is workable.

Post reply on HN