a-b-street / osm2lanes

A common library and set of test cases for transforming OSM tags to lane specifications
https://a-b-street.github.io/osm2lanes/
Apache License 2.0
34 stars 2 forks source link

`busway=opposite_lane` not interpreted correctly #163

Open westnordost opened 2 years ago

westnordost commented 2 years ago

It looks like some busway=opposite_lane tagging is not interpreted correctly.

The table below assumes a country with right-hand traffic. Note that the sides flip if oneway=-1 and if it is in a country with left-hand traffic.

inputcurrent outputexpected output
``` oneway=yes busway=opposite_lane ``` ``` oneway=yes lanes=1 busway:both=lane ``` ```diff oneway=yes - lanes=1 - busway:both=lane + busway:left=lane ```
``` oneway=-1 busway=opposite_lane ``` ``` lanes=2 ``` ```diff - lanes=2 + oneway=-1 + busway:right=lane ```