Handle one street split into several ways #2478
Comments
Author: twain 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. |
Author: MichalP another example http://nominatim.openstreetmap.org/search?q=sancova+bratislava to make it harder:
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 ? |
Author: MichalP there is proposal for relation collected ways this one could be used to determine one street. |
Author: datendelphin seems to be fixed in the mean time |
Author: jbohmdk 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). |
Author: lonvia 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. |
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.
The text was updated successfully, but these errors were encountered: