NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I've been entering level-8 (village) administrative boundaries in northern Serbia recently, using admin_centre/administrative boundary relations. On testing my changes, however, I noticed inconsistent behavior of Nominatim search:

For "good" ones, search immediately returns only one result: the relation containing both the village and its boundaries, e.g.:
Lipar
Stapar
For "bad" ones, search returns the village (point) separately from the boundary relation it belongs to, which is redundant and confusing:
Nova Crvenka (just 4 members)
Crvenka

I can't figure out if I'm doing anything wrong, or is it a bug/feature on Nominatim's side. All those relations seem to have identical structure member-wise and tag-wise, and I can't explain different behavior. There's a hint in FAQ that it might be due to some heuristics in Nominatim's algorithm (so I shouldn't worry), but I'd like to get a sanity check if I'm doing anything wrong first, if anyone feels like looking into it. Thanks.

asked 17 Jan '19, 10:58

Duja's gravatar image

Duja
56226
accept rate: 0%


I seem to have figured it out. The problem was caused by naming: villages had canonical name in Serbian Cyrillic, while I populated the relations' names in Serbian Latin, as it was more convenient for me. I didn't think the relation names mattered. When I populated the whole set of transliterations for the boundary (Serbian Cyrillic, Serbian Latin, English), it started working as expected... although using just Cyrillic name seems to work as well

I'm still not sure how Nominatim did the "right" thing with the "good" relations, although their names were only in Latin all the way. Possibly has to do with transliterations, or who knows what. For example, when I populated Nova Crvenka in Cyrillic, adjacent Crvenka also started behaving, although I didn't touch it. Go figure...

permanent link

answered 22 Jan '19, 11:35

Duja's gravatar image

Duja
56226
accept rate: 0%

The tagging with role admin_centre looks good, Nominatim should've linked those together and returned only a single result. Can you add that to https://github.com/openstreetmap/Nominatim/issues ?

permanent link

answered 18 Jan '19, 15:08

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×193
×129
×63

question asked: 17 Jan '19, 10:58

question was seen: 1,900 times

last updated: 22 Jan '19, 11:35

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum