From 4026ed54c0f22a056a849c09edeec977616f1441 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Tue, 11 Oct 2022 11:09:56 +0200 Subject: [PATCH] Add support for surface=metal,grass_paver,woodchips in bicyle profile (#6395) --- CHANGELOG.md | 3 +++ features/bicycle/surface.feature | 3 +++ profiles/bicycle.lua | 3 +++ 3 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47b0d9b41..638bec2d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Unreleased + - Changes from 5.27.0 + - Routing: + - CHANGED: Add support for surface=metal,grass_paver,woodchips in bicyle profile. [#6395](https://github.com/Project-OSRM/osrm-backend/pull/6395) # 5.27.0 - Changes from 5.26.0 diff --git a/features/bicycle/surface.feature b/features/bicycle/surface.feature index e1062d092..5ca104fba 100644 --- a/features/bicycle/surface.feature +++ b/features/bicycle/surface.feature @@ -15,6 +15,7 @@ Feature: Bike - Surfaces | cycleway | cobblestone:flattened | 72 s | | cycleway | paving_stones | 72 s | | cycleway | wood | 72 s | + | cycleway | metal | 72 s | | cycleway | compacted | 72 s | | cycleway | fine_gravel | 72 s | | cycleway | ground | 72 s | @@ -22,11 +23,13 @@ Feature: Bike - Surfaces | cycleway | cobblestone | 102.9 s | | cycleway | gravel | 120 s | | cycleway | pebblestone | 120 s | + | cycleway | grass_paver | 120 s | | cycleway | dirt | 90 s | | cycleway | earth | 120 s | | cycleway | grass | 120 s | | cycleway | mud | 240 s | | cycleway | sand | 240 s | + | cycleway | woodchips | 240 s | | cycleway | sett | 80 s | Scenario: Bicycle - Good surfaces on small paths diff --git a/profiles/bicycle.lua b/profiles/bicycle.lua index e520c35ea..374cb4fa2 100644 --- a/profiles/bicycle.lua +++ b/profiles/bicycle.lua @@ -178,6 +178,7 @@ function setup() concrete = default_speed, concrete_lanes = default_speed, wood = 10, + metal = 10, ["cobblestone:flattened"] = 10, paving_stones = 10, compacted = 10, @@ -186,12 +187,14 @@ function setup() fine_gravel = 10, gravel = 6, pebblestone = 6, + grass_paver = 6, ground = 10, dirt = 8, earth = 6, grass = 6, mud = 3, sand = 3, + woodchips = 3, sett = 9 },