Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions features/car/classes.feature
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,23 @@ Feature: Car - Mode flag
| from | to | route | turns | classes |
| a | d | ab,cd | depart,arrive| [(restricted),(motorway,restricted),()],[()] |

Scenario: Car - We tag access=unknown with a restricted class
Given the node map
"""
a b
c d
"""

And the ways
| nodes | highway | access |
| ab | primary | unknown |
| bc | motorway| unknown |
| cd | primary | |

When I route I should get
| from | to | route | turns | classes |
| a | d | ab,cd | depart,arrive| [(restricted),(motorway,restricted),()],[()] |

Scenario: Car - We tag toll with a class
Given the node map
"""
Expand Down
4 changes: 2 additions & 2 deletions profiles/car.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ function setup()
'vehicle',
'permissive',
'designated',
'hov',
'unknown'
'hov'
},

access_tag_blacklist = Set {
Expand Down Expand Up @@ -125,6 +124,7 @@ function setup()
'customers',
'permit',
'residents',
'unknown',
},
Comment on lines 124 to 128

access_tags_hierarchy = Sequence {
Expand Down
Loading