Skip to content

Commit 660cea8

Browse files
authored
Bicycle surface speeds (#6212)
1 parent be35363 commit 660cea8

File tree

3 files changed

+25
-12
lines changed

3 files changed

+25
-12
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
- ADDED: Support snapping to multiple ways at an input location. [#5953](https://github.com/Project-OSRM/osrm-backend/pull/5953)
6060
- FIXED: Fix snapping target locations to ways used in turn restrictions. [#6339](https://github.com/Project-OSRM/osrm-backend/pull/6339)
6161
- ADDED: Support OSM traffic signal directions. [#6153](https://github.com/Project-OSRM/osrm-backend/pull/6153)
62+
- Profile:
63+
- CHANGED: Bicycle surface speeds [#6212](https://github.com/Project-OSRM/osrm-backend/pull/6212)
64+
6265

6366
# 5.26.0
6467
- Changes from 5.25.0

features/bicycle/surface.feature

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,34 @@ Feature: Bike - Surfaces
99
| highway | surface | bothw |
1010
| cycleway | | 48 s |
1111
| cycleway | asphalt | 47.9 s |
12+
| cycleway | chipseal | 48 s |
13+
| cycleway | concrete | 48 s |
14+
| cycleway | concrete_lanes | 48 s |
1215
| cycleway | cobblestone:flattened | 72 s |
1316
| cycleway | paving_stones | 72 s |
17+
| cycleway | wood | 72 s |
1418
| cycleway | compacted | 72 s |
15-
| cycleway | cobblestone | 120 s |
16-
| cycleway | fine_gravel | 120 s |
19+
| cycleway | fine_gravel | 72 s |
20+
| cycleway | ground | 72 s |
21+
| cycleway | dirt | 90 s |
22+
| cycleway | cobblestone | 102.9 s |
1723
| cycleway | gravel | 120 s |
1824
| cycleway | pebblestone | 120 s |
19-
| cycleway | dirt | 120 s |
25+
| cycleway | dirt | 90 s |
2026
| cycleway | earth | 120 s |
2127
| cycleway | grass | 120 s |
2228
| cycleway | mud | 240 s |
2329
| cycleway | sand | 240 s |
24-
| cycleway | sett | 72 s |
30+
| cycleway | sett | 80 s |
2531

2632
Scenario: Bicycle - Good surfaces on small paths
2733
Then routability should be
2834
| highway | surface | bothw |
2935
| cycleway | | 48 s |
30-
| path | | 59.9 s |
36+
| path | | 55.3 s |
3137
| track | | 60 s |
3238
| track | asphalt | 60 s |
33-
| path | asphalt | 60 s |
39+
| path | asphalt | 55.4 s |
3440

3541
Scenario: Bicycle - Surfaces should not make unknown ways routable
3642
Then routability should be

profiles/bicycle.lua

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function setup()
133133
road = default_speed,
134134
service = default_speed,
135135
track = 12,
136-
path = 12
136+
path = 13
137137
},
138138

139139
pedestrian_speeds = {
@@ -174,21 +174,25 @@ function setup()
174174

175175
surface_speeds = {
176176
asphalt = default_speed,
177+
chipseal = default_speed,
178+
concrete = default_speed,
179+
concrete_lanes = default_speed,
180+
wood = 10,
177181
["cobblestone:flattened"] = 10,
178182
paving_stones = 10,
179183
compacted = 10,
180-
cobblestone = 6,
184+
cobblestone = 7,
181185
unpaved = 6,
182-
fine_gravel = 6,
186+
fine_gravel = 10,
183187
gravel = 6,
184188
pebblestone = 6,
185-
ground = 6,
186-
dirt = 6,
189+
ground = 10,
190+
dirt = 8,
187191
earth = 6,
188192
grass = 6,
189193
mud = 3,
190194
sand = 3,
191-
sett = 10
195+
sett = 9
192196
},
193197

194198
classes = Sequence {

0 commit comments

Comments
 (0)