Similar results not sure how to pick the best #3388
Replies: 3 comments 3 replies
-
https://www.openstreetmap.org/relation/11514197 is a subarea of https://www.openstreetmap.org/relation/10625811 which also explains the higher I think the confusion comes from Nominatim adding the various https://nominatim.openstreetmap.org/ui/details.html?osmtype=R&osmid=11514197&class=boundary |
Beta Was this translation helpful? Give feedback.
-
I think You uncovered a data issue and the local community (can be found via https://openstreetmap.community/) would need to review the various admin levels in that city. Both results https://www.openstreetmap.org/relation/6930224 and https://www.openstreetmap.org/relation/11514197 shared the same label (relation member). I removed the label from the suburb now but I think it needs reindexing of the area to show effect. Additionally https://www.openstreetmap.org/relation/6930224 and https://www.openstreetmap.org/relation/10625811 seem to represent the same with different tags. Could be valid reason or mistake nobody noticed yet. Nominatim search can't do much about duplicate result. It sorts (ranks) them by importance but both have the same importance score currently. It's better to fix the data issues. Such duplicate results are very rare, having the same importance even more. The frontend you see on https://nominatim.openstreetmap.org/ui/search.html?q=Zvezdara is a separate project https://github.com/osm-search/nominatim-ui/ You can run it locally against your installation or install it on your server.
Each place is put in a hierarchy in the Nominatim database. It starts with admin_level*2 but there can be exceptions and logic for individual countries. Admin_level=2 is a country, 4 a state, 8 a city, 10 and there's a huge table on https://wiki.openstreetmap.org/wiki/Tag%3aboundary=administrative for all countries. Putting the world into a hierarchy is never easy. For you to remember is: the lower the number the bigger the place. Importance is calculated based on the place type (some defaults for each type) and how many wikipedia articles link to the place's wikipedia article. (Plus more logic related to different languages, normalization of titles, adding wikidata). Other geocoders also add population numbers.
See https://nominatim.org/release-docs/latest/admin/Advanced-Installations/#importing-multiple-regions-with-updates If you have follow-up questions on multi-region imports it's best to open a new separate discussion. |
Beta Was this translation helpful? Give feedback.
-
Hello @mtmail, Do you suggest some patch for this problem; or some solution I can provide a fix in my project? |
Beta Was this translation helpful? Give feedback.
-
I am using nominatim
search
anddetails
API. I have successfully setup on my own server as well. My problem is look at this search resultResult
I am getting 3 records for the results, 2 of which are exactly similar. When I call
details
api with place id I am getting different polygon.Q1. I want to get more details about these record and which I can consider to be my correct result and how I can tackle this problem for other place search results as well.
Q2. What purpose does the place_rank and importance serve?
Q3. I have added the serbia data in my own server, how I can update with other region of europe i.e. Italy, Montenegro and so on.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions