If you search for the address on the osm website, nominatim returns the nearest place=village even though it is wrong and there exists a place=town at a nearer location.
To me it seems like an issue of nominatim, but before bothering them, I’m asking here if someone sees some issue in the tagging of those examples or generally in switzerland.
This is likely due to the place node using the Wohlen AG form instead of Wohlen (which is what we customary do for names with disambiguation suffixes). But as these are just nodes there is never a guarantee that things will always turn out right.
There is more confusion as the name of the municipality is Wohlen (AG) not Wohlen AG in any case (that is the name of the postal city).
PS: just for good measure the townhall is mapped twice.
Merci Piagno für das Eröffnen dieses Fadens - ich hatte es gestern auch im Hinterkopf, kam aber nicht dazu.
Dass der fehlende Knoten für die Gemeinde (den grösseren Ort) die Ursache für das Verhalten sein könnte habe ich ja bereits in einer der beiden Changeset-Diskussionen angeführt. Allerdings lässt mich das von 9_tab dort verlinkte Suchergebnis für Weingasse auch wieder etwas zweifeln ob das systematisch ist und wenn ja wie. Das eine Ergebnis wird ja nicht als in Hilfikon angezeigt, und für das andere Ergebnis ist es zumindest nicht ganz falsch da ein Ende des Strassenstücks innerhalb der Relation Hilfikon liegt.
Das Gemeindehaus Wohlen ist wirklich etwas sonderbar wenn schon ein Knoten für die Stadt existiert und näher liegt als Anglikon. townhall:type=village wird das ja sicher nicht beeinflussen
Ich kann mir vorstellen, dass aus irgendeinem Grund place=town gibt, die aus mehreren place=village bestehen und man dann möchte, dass die örtliche Dorfbezeichnung genommen wird, oder irgendwas in diese Richtung.
Irgendwie ist bei Wohlen / Anglikon auf dem ganzen Dorfgebiet etwas komisch. Anglikon ist ein kleiner Ortsteil von Wohlen, aber wirklich nur ein kleiner Ortsteil.
It seems nominatim just makes some “magic” to find all address information. Place Output Formats - Nominatim Manual The key:place has many possible values, which all seem to be used by nominatim.
Looking at the different issues, both still existing and solved, I would guess the solution ist to have a area/boundary relation/area for the “bad” node, so it is contained. Thus I created a overpass-turbo query (partially generated with copilot), so we have a overview of the nodes. It shows all nodes in switzerland, which aren’t part of a relation. I color coded them a bit, with the red ones, being the most dangerous ones (at least how I assumed)
Since there are so many poi’s, even without the place=locality (which don’t seem to interfere), of around 22k i don’t think a manual mass edit is possible or sensible. And since even for nominatim it is too difficult to automatically detect the right place, I don’t think a automated edit is possible.
Horrenbach-Buchen: add an appropriate wikidata tag to make sure the node gets linked with the administrative boundary.
Anglikon: known data issue when suburbs are mapped as nodes and then there is no suburb for the center. There must be a dozen threads about this on this forum. Can only be solved by adding proper areas for the suburbs.
I created another overpass query which finds nodes which don’t have a wikidata tag or don’t have a corresponding relation. If applied to whole switzerland it times out. If there is a similar issue, with this query bad places can be found.
If anyone has improvements or knows which relations and nodes are exactly used by nominatim, feel free to suggest here or update it.
I would suggest to not go through all the nodes, because there are way too many.
Maybe start with municipalities and fix those first.
We could revise Suggested merger workflow - OpenStreetMap Wiki to keep borders if possible. Sample from 2026: keeping the old boundaries of Fétigny and Ménières would avoid such issues for those two.
Alternative: just add a note for one or the other that bothers you and we can try to improve those together.
This has previously been discussed to death, but anyway: the old borders simply don’t exist any more (the tiny number of exceptions noted when they were changed in to quarters or similar actually existing administrative entities) and are at best of historic interest (and shouldn’t really be in regular OSM to start with)*. The proper way, if you believe areas are even needed, is to add place boundaries around the built-up areas of the former municipality (plural as there may be multiple villages in that former boundary).
And yes, as they have exactly the same issue, that is what swisstopo does too.
Note: this is not the same issue as support for postal cities and their boundaries which was mentioned in one of the changeset comments.
* not to mention this will actually result in a faulty hierarchy if there were multiple places in the former municipality and is a major issue with ongoing maintenance of the borders.
That might explain why you delete them. No, I don’t think you should leave them as is, but they can be adapted for place boundaries.
That others haven’t solved this or aren’t particularly good at handling it, shouldn’t prevent us from mapping.
I noticed some doing this, but at least in Austria, the community considers that really bad practice. For the Anglikon sample, I think the 1900 boundaries are a good approximation.
Please go back and read what I wrote, while we could probably use polygons from swisstopo for that, I didn’t remotely suggest that we do that. I just pointed out that they solve the issue (which is universal) in a similar fashion (it is unclear what they actually use, it might be building zones from the cadastre which aren’t open data all over the country to start with).