This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

two city names listed in search results for a restaurant, I can’t change that!

1

Hi, I added my restaurant, La Petite Cantine in Fribourg, Switzerland to the map.

Everything appears correct, with one exception: When you search for La Petite Cantine, you will see that the address in the search result list shows 2 city names, instead of one: It says Windig, Fribourg. It should only be Fribourg.

How do I remove Windig? I have found no place where this city name is listed in my tag.

Thanks

asked 20 Oct '13, 12:46

StanStar's gravatar image

StanStar
26112
accept rate: 0%

edited 20 Oct '13, 13:37

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


One Answer:

2

That is likely related to the reverse geocoding feature of Nominatim, which seems to be used here to add full location information in the search results. You will also note that "Windig" is added to the location description if you centre the map on Fribourg and click "where am i" in the left menu panel.

That seems to be because there is Windig (place = suburb) defined as a node (just one location point) and the centre has no suburb. Nominatim searches to which suburb your location belongs and only finds Windig as most nearest suburb. This could be improved by marking Windig suburb as an area instead of just a point - to help Nominatim with guessing how big this suburb is. See also nominatim-town-suburb-village-hierarchy-confusion-in-results.

All in all: you have done your entry correctly. I hope you continue to improve OpenStreetMap when you have a bit of free time! :-)

answered 20 Oct '13, 13:27

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 20 Oct '13, 13:34

1

You can look up how Nominatim builds the full address. Search for your feature on http://nominatim.openstreetmap.org and click on (details) at the relevant result. There you can see the address hierarchy for La Petite Cantine, including the suburb node for Windig.

(20 Oct '13, 14:38) scai ♦

Source code available on GitHub .