11@routing @maxspeed @car
22Feature : Car - Max speed restrictions
3- When a max speed is set, osrm will use 2/3 of that as the actual speed.
3+ OSRM will use 4/5 of the projected free-flow speed.
44
55 Background : Use specific speeds
66 Given the profile "car"
@@ -17,8 +17,8 @@ When a max speed is set, osrm will use 2/3 of that as the actual speed.
1717
1818 When I route I should get
1919 | from | to | route | speed |
20- | a | b | ab | 85 km /h |
21- | b | c | bc | 40 km /h +- 1 |
20+ | a | b | ab | 67 km /h |
21+ | b | c | bc | 48 km /h +- 1 |
2222
2323 Scenario : Car - Do not ignore maxspeed when higher than way speed
2424 Given the node map
@@ -31,21 +31,21 @@ When a max speed is set, osrm will use 2/3 of that as the actual speed.
3131
3232 When I route I should get
3333 | from | to | route | speed |
34- | a | b | ab | 25 km /h |
35- | b | c | bc | 60 km /h +- 1 |
34+ | a | b | ab | 20 km /h |
35+ | b | c | bc | 72 km /h +- 1 |
3636
3737 Scenario : Car - Forward/backward maxspeed
3838 Given a grid size of 100 meters
3939
4040 Then routability should be
4141 | highway | maxspeed | maxspeed :forward | maxspeed :backward | forw | backw |
42- | primary | | | | 65 km /h | 65 km /h |
43- | primary | 60 | | | 40 km /h | 40 km /h |
44- | primary | | 60 | | 40 km /h | 65 km /h |
45- | primary | | | 60 | 65 km /h | 40 km /h |
46- | primary | 15 | 60 | | 40 km /h | 10 km /h +- 1 |
47- | primary | 15 | | 60 | 10 km /h +- 1 | 40 km /h |
48- | primary | 15 | 30 | 60 | 20 km /h | 40 km /h |
42+ | primary | | | | 51 km /h | 51 km /h |
43+ | primary | 60 | | | 48 km /h | 48 km /h |
44+ | primary | | 60 | | 48 km /h | 65 km /h |
45+ | primary | | | 60 | 51 km /h | 48 km /h |
46+ | primary | 15 | 60 | | 48 km /h | 15 km /h +- 1 |
47+ | primary | 15 | | 60 | 12 km /h +- 1 | 48 km /h |
48+ | primary | 15 | 30 | 60 | 24 km /h | 48 km /h |
4949
5050 Scenario : Car - Maxspeed should not allow routing on unroutable ways
5151 Then routability should be
0 commit comments