Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Suburb should be shown only if the element is inside the city of which the suburb belong #4504

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: AnyFile
[Submitted to the original trac issue database at 8.14am, Wednesday, 1st August 2012]

If I made a search for
Via Archimede, Bresso, Italia

In the response I get ( place_id="37659795" osm_type="way" osm_id="27393925")

as well as Bresso
I also get
Niguarda

Now the suburb Niguarda (place_id=10578283 osm_node=957188590), is a suburb of the city Milano, not of the city Bresso.

Now it is clear from the documentation of suburb the a suburb is: "[...] a major sub-division of a place=town or place=city"

So I should assume that a suburb should not extend outside the city.

In this case the suburb is just a point and there is no a relation with is boundary, so it is not clear where the suburb ends, but surely it should not extend beyond the boundary of the city.

Looking from a different prospective (this may be easier to understand and implement), a suburb should be attached to an element only if the corresponding city or town is attached.

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 8.22pm, Sunday, 5th August 2012]

This has already been addressed in the latest version of Nominatim. Nodes are excluded from the address if they are outside the area of the next higher level. This newer version will go live on osm.org in a few weeks.

Duplicate of #4247.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant