osmose-backend
osmose-backend copied to clipboard
Incorrect turn lanes count with busway linking road
http://osmose.openstreetmap.fr/nl/issue/74e8abac-30a4-1c96-ba97-a2a555a932c2
Item: 3160 Class: 1
access:lanes=||no
highway=trunk
lanes=3
motorroad=yes
oneway=yes
psv:lanes=||designated
turn:lanes=left;through|through;right|
highway=trunk
lanes=2
motorroad=yes
oneway=yes
turn:lanes=left;through|through;right
access=no
highway=busway
oneway=yes
psv=designated
(I removed some unimportant values from the above lists)
Osmose reports:
Bad lanes number or
turn:lanes
before and after this node lanes in 3(-0+0), lanes out 2(-0+0)
However, lanes out is 2 (from "outgoing way 1") + 1 (from "outgoing way 2") = 3
I'm unsufficiently experienced with SQL to fix it myself, but it seems that only outgoing motorway_link/trunk_link are counted, but not highway=service/highway=busway (i.e. emergency ways and busways respectively). For busways the wiki explicitly mentions to use highway=busway rather than motorway_link/trunk_link. https://github.com/osm-fr/osmose-backend/blob/master/analysers/analyser_osmosis_highway_turn_lanes.py