osm2lanes
osm2lanes copied to clipboard
A common library and set of test cases for transforming OSM tags to lane specifications
osm2lanes is nearly at a point where I'd like to make A/B Street take a dependency on it and remove the original copy of the osm2lanes logic. Just writing down...
https://www.openstreetmap.org/way/150133153 yields: ``` { "highway": "footway", "lit": "yes", "smoothness": "good", "lanes": [ { "type": "travel", "direction": "both", "designated": "motor_vehicle", "width": 3.0 }, { "type": "separator", "markings": [ { "style": "solid_line",...
`lanes:both_ways=1` and something like `bus:lanes:backward=||designated` don't work together, due to https://github.com/a-b-street/osm2lanes/blob/7f64330d31eb7b263e7bc65f8302a79c8d7f46d8/osm2lanes/src/transform/tags_to_lanes/modes/bus/mod.rs#L153 counting the both-ways lane in `road.len()`. Example is https://www.openstreetmap.org/way/753045259
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?
Tagging like - `cycleway=no + cycleway:left=track` - `cycleway=track + cycleway:left=no` - `cycleway:both=lane+ cycleway:right=track` should report an error. I.e. wherever `cycleway:both`/ `cycleway` contradicts with the `cycleway:` tag This tagging is ambiguous...
It would be good to have an ordered list of tags (key + val) used in ways, such that we can prioritize support. We can then make milestones tracking our...
We have a British and Dutch example on the website. I am looking for suggestions for ways in other country that are good examples. A good example is: - idiomatic...