How does Nominatim reverse-geocode? I'm interested in knowing how the process works, and even trying to optimize it, if possible. I've Googled for an answer but could not find it. How does Nominatim resolve a GPS coordinate into a place? Thanks in advance asked 06 Feb '14, 23:05 baekacaek aseerel4c26 ♦ |
The "grunt work" of reverse geocoding in Nominatim is done by the PostGIS database. Nominatim uses a helper program, osm2pgsql, to import OSM data into a PostGIS database, and then queries PostGIS to return the nearest feature to a given coordinate. That's the core of it. (See the SQL query that does this.) After identifying the nearest feature, Nominatim will go through a few extra database queries to actually give you the full place hierarchy (country, state, city etc.) for it. answered 07 Feb '14, 07:39 Frederik Ramm ♦ |
Yes, it does reverse-geocode. See section one in Nominatim wiki page. To see how it works you could see the source code. Also the development overview might be useful for understanding (linked in the intro section). answered 07 Feb '14, 00:17 aseerel4c26 ♦ 1
Thanks for the answer. I am fully aware that Nominatim has a reverse geocoding capability. My question was how it does it, not whether or not it does it. I could look at the source code, but I'm not too fluent in the language Nominatim is written.
(07 Feb '14, 02:09)
baekacaek
@baekacaek: Indeed ... For whatever reason I missed the "How" while reading, sorry.
(07 Feb '14, 14:28)
aseerel4c26 ♦
|
Please avoid crosspostings as they consume a lot of the ressources that try to help you: https://stackoverflow.com/questions/21616476/how-does-reverse-geocoding-work