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

Handle one street split into several ways #2478

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 6 comments
Closed

Handle one street split into several ways #2478

openstreetmap-trac opened this issue Jul 23, 2021 · 6 comments

Comments

@openstreetmap-trac
Copy link

Reporter: Ed Avis
[Submitted to the original trac issue database at 7.52am, Thursday, 19th November 2009]

Often in OSM the same street, which would be shown as one named street on a paper map
and get one entry in an 'A-Z' index, is mapped as several ways joined together.
This is often necessary but it means multiple results are returned from Nominatim
when a conventional street atlas would just give one.

For example, the first four results for
http://nominatim.openstreetmap.org/?q=mare+street are all the same street.

Perhaps if two or more ways join up and have the same name, they can be treated as
a single street whose location is somewhere near the centre.

@openstreetmap-trac
Copy link
Author

Author: twain
[Added to the original trac issue at 6.08pm, Saturday, 5th December 2009]

Ways with identical addresses are merged, otherwise they are both shown.

I think an extra option to control the amount of merging may be needed.

@openstreetmap-trac
Copy link
Author

Author: MichalP
[Added to the original trac issue at 9.39pm, Thursday, 15th April 2010]

another example http://nominatim.openstreetmap.org/search?q=sancova+bratislava

to make it harder:

  • opposite lanes are not connected (they are connected by different roads) (but they are close to each other, like couple of meters)

  • each lane is in a different district and has different postcode (middle of the road is the administrative border)

  • some of the ways may have unfilled other names (like local_name), either on purpose or unintentionally

is it possible to merge results if they are closer than say 10 meters ?

maybe group by ST_Distance (if it worked...)

where would you suggest to start hacking ?

@openstreetmap-trac
Copy link
Author

Author: MichalP
[Added to the original trac issue at 12.37pm, Friday, 21st May 2010]

there is proposal for relation collected ways
http://wiki.openstreetmap.org/wiki/Relations/Proposed/Collected_Ways

this one could be used to determine one street.

@openstreetmap-trac
Copy link
Author

Author: datendelphin
[Added to the original trac issue at 8.42pm, Tuesday, 10th July 2012]

seems to be fixed in the mean time

@openstreetmap-trac
Copy link
Author

Author: jbohmdk
[Added to the original trac issue at 1.41am, Friday, 9th August 2013]

Problem is still there, two examples that I recently looked at in detail:

Harlsevej (unique in the current planet data)

Tulstrup Have, Hillerd

("" is a national letter, just copy/paste it).

These two roads are typical examples of the reasons a road is split in the osm data. Harlsevej is a long tertiary road, which is split whenever things like speed limits or sidewalk presence changes. Both roads also feature side branches sharing the name (they are effectively shared driveways, some with, some without, public right of way). One end of Harlsevej also features a split into right and left lanes near a roundabout. Neither has (nor should have) any special route relation, all have direct connections between their parts (shared nodes, no need for fuzzy distance checks).

However Nominatum currently (2013-08-09 01:20 UTC) returns both roads as a large number of hits, in seemingly random order.

The rule should be simple: If two roads with the same name, share a node and share (derived) is_in relations and other Nominatim relevant data, they should become one in the Nominatim database. If they share the same name and share a node, but differ in properties that Nominatim needs for other operations, they should be internally linked, so a search returns just a single merged object consisting of the segments that match the search criteria (for instance, if the search is limited to the part of Harlsevej that has an implicit or explicit is_in Tjreby, then those parts should be returned as one stretch of road which is less than the full road, but still the merge of many segments).

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 8.09am, Sunday, 9th February 2014]

The duplicates of Harlsevej are related to an update bug where the wrong default admin_level was assigned. That has been fixed in the meantime and should take effect the next time the OSM is changed.

For merging streets see ticket #4952.

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