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

cycle track is auto-filled to cycle lane #223

Open westnordost opened 2 years ago

westnordost commented 2 years ago

Inputting in https://a-b-street.github.io/osm2lanes/

highway=residential
cycleway=track

auto-fills to

cycleway:both=lane
cycleway:left:oneway=-1
cycleway:right:oneway=yes
highway=residential
lanes=2
lanes:backward=1
lanes:forward=1
shoulder=no
sidewalk=no

Now, where does the cycle lane come from?

droogmic commented 2 years ago

the lanes to tags parsing does not yet know how to differentiate a lane from a track, so it defaults to lane: https://github.com/a-b-street/osm2lanes/blob/main/osm2lanes/src/transform/lanes_to_tags/mod.rs#L355-L357