Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Add Tests For cycleway:BACKWARD=lane (#189)
Browse files Browse the repository at this point in the history
* Add Tests For cycleway:BACKWARD=lane

* Rework
  • Loading branch information
droogmic authored May 8, 2022
1 parent a22100a commit b6c0e73
Showing 1 changed file with 72 additions and 2 deletions.
74 changes: 72 additions & 2 deletions data/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
- way_id: 560651884
description: Italian Autostrada, motorway in mountainous terrain with no shoulder
mapillary: https://www.mapillary.com/app/?pKey=998353037635549
rust: false
rust: false # TODO: how to determine no shoulder
tags:
highway: motorway
lanes: "2"
Expand Down Expand Up @@ -715,7 +715,7 @@
lanes: "1"
oneway: "yes"
oneway:bicycle: "no"
cycleway: opposite
cycleway: "opposite"
sidewalk: "no"
shoulder: "no"
driving_side: right
Expand All @@ -729,6 +729,76 @@
direction: forward
designated: motor_vehicle

- description: "cycleway:BACKWARD:lane=advisory oneway=yes oneway:bicycle=no"
way_id: 25745877
rust: false
# separators: false
# expect_warnings: true
tags:
highway: "residential"
oneway: "yes"
oneway:bicycle: "no"
sidewalk: "both"
shoulder: "no"
cycleway:left: "lane"
cycleway:left:lane: "advisory"
# cycleway:left:oneway: "-1" should be assumed
cycleway:right: "no"
driving_side: right
road:
highway: road
lanes:
- type: travel
designated: foot
# TODO: kerb spec not yet defined
# - type: separator
# markings:
# - style: kerb
- type: travel
direction: backward
designated: bicycle
- type: separator
markings:
- style: dashed_line
color: white
- type: travel
direction: forward
designated: motor_vehicle
# TODO: kerb spec not yet defined
# - type: separator
# markings:
# - style: kerb
- type: travel
designated: foot

- description: "cycleway:BACKWARD:lane=advisory oneway=yes oneway:bicycle=no cycleway:left:BACKWARD=yes"
way_id: 25745877 # but modified
rust: false
tags:
highway: "residential"
oneway: "yes"
oneway:bicycle: "no"
sidewalk: "both"
shoulder: "no"
cycleway:left: "lane"
cycleway:left:lane: "advisory"
cycleway:left:oneway: "yes"
cycleway:right: "no"
driving_side: right
road:
highway: road
lanes:
- type: travel
designated: foot
- type: travel
direction: forward
designated: bicycle
- type: travel
direction: forward
designated: motor_vehicle
- type: travel
designated: foot

## TODO: shared cycle lanes

## TODO: cycle tracks
Expand Down

0 comments on commit b6c0e73

Please sign in to comment.