Commit aa65f46
fix(profiles): add winter_road/ice_road and surface=ice/snow to car.lua (#7465)
* fix(profiles): add winter_road/ice_road and surface=ice/snow to car.lua
OSM highway=winter_road, highway=ice_road, surface=ice, and surface=snow
had no entries in car.lua. OSRM was routing over these ways at full highway
speed, producing dangerously optimistic routes in winter conditions.
Add conservative speed caps consistent with safe winter driving:
- speeds.highway: winter_road=20, ice_road=15 (km/h)
- surface_speeds: ice=20, snow=30 (km/h)
WayHandlers.speed() and WayHandlers.surface() already read these tables;
no logic changes required.
Fixes #7464
Co-Authored-By: Claude and aki1770-del <aki1770@gmail.com>
* test(profiles): add cucumber tests for winter_road/ice_road and surface=ice/snow
Co-Authored-By: Claude and aki1770-del <aki1770@gmail.com>
---------
Co-authored-by: Dennis Luxen <info@project-osrm.org>1 parent b3b0f38 commit aa65f46
3 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
| |||
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
254 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
255 | 262 | | |
256 | 263 | | |
257 | 264 | | |
| |||
0 commit comments