I thought Nominatim and Overpass have the same data base. But the tags in the search results are quite different e.g. has this request in Overpass http://overpass-turbo.eu/s/jK8 more information for the same node than this in Nominatim In this case of a charging station, 'voltage', 'socket', and 'capacity' are interesting values! I do not want to host two databases, but I would like to have all the possible information! Overpass is a bit slow so preferably I would like to use Nominatim, which seems to have less infomation. Is there any setting which I missed to improve the Nominatim result? Thanks. asked 31 Oct '16, 11:07 autumnus |
Overpass API returns all tags of the object since querying for specific tags is one of the main purposes of this API. Nominatim in contrast is a geocoder. It doesn't need information like 'voltage', 'socket', and 'capacity' to answer geocoding requests. Stripping the database of unnecessary information will probably lead to faster search results, reduced time during import and updates and less disk space requirements. However Nominatim will always include answered 31 Oct '16, 11:36 scai ♦ Thanks for that very fast reply! That is what I feared: it seems there is no way around using two services, right?
(31 Oct '16, 13:26)
autumnus
|
Thanks to openSource I found another solution which fits my purpose: Nominatim uses osm2pgsql to fill the database. And this filters which tags are put into the extratags-column. For testing I added a few lines in the code to also fill all remaining tags in the same column. Maybe this is a solution which is not according to the usual usage of Nominatim, but that is what I wanted. I just wanted to tell you this way of changing Nominatims behaviour by code change. Be aware that this way ALL tags are taken also (at least in my case) less usefull like
or
By the way: The lines I added are in file output-gazetteer.cpp in the osm2pgsql folder: in the
in the for-loop I appended the else-clause
After that change you have to recompile and just import as usual. answered 03 Nov '16, 07:23 autumnus |
You can go in the other direction, use the http://overpass-turbo.eu/s/jKs Be sure to inspect the data tab to see the areas returned, they aren't visible on the map. answered 31 Oct '16, 14:09 maxerickson Good to know 'is_in' exists. But Overpass already has the more interesting tags for my purpose even in the basic request. What I wanted originally was the improvement of the Nominatim-request.
(31 Oct '16, 14:56)
autumnus
|