From ab420c74a71c0c91db007305979313e109e64f29 Mon Sep 17 00:00:00 2001 From: lluka Date: Thu, 23 Oct 2025 09:38:42 +0200 Subject: [PATCH] [routing] Update (again) speed and factor for cars and bikes on tracks Signed-off-by: lluka --- libs/routing_common/bicycle_model.cpp | 2 +- libs/routing_common/car_model_coefs.hpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/routing_common/bicycle_model.cpp b/libs/routing_common/bicycle_model.cpp index 486ae4f6b..721e1c687 100644 --- a/libs/routing_common/bicycle_model.cpp +++ b/libs/routing_common/bicycle_model.cpp @@ -171,7 +171,7 @@ VehicleModel::SurfaceInitList const kBicycleSurface = { {{"psurface", "paved_good"}, {1.0, 1.0}}, {{"psurface", "paved_bad"}, {0.8, 0.8}}, {{"psurface", "unpaved_good"}, {0.9, 0.9}}, - {{"psurface", "unpaved_bad"}, {0.6, 0.6}}, + {{"psurface", "unpaved_bad"}, {0.45, 0.45}}, // No dedicated cycleway doesn't mean that bicycle is not allowed, just lower weight. // If nocycleway is tagged explicitly then there is no cycling infra for sure. // Otherwise there is a small chance cycling infra is present though not mapped? diff --git a/libs/routing_common/car_model_coefs.hpp b/libs/routing_common/car_model_coefs.hpp index 418b7ba78..f77fe78dd 100644 --- a/libs/routing_common/car_model_coefs.hpp +++ b/libs/routing_common/car_model_coefs.hpp @@ -34,12 +34,13 @@ HighwayBasedFactors const kHighwayBasedFactors = { {HighwayType::HighwayLivingStreet, InOutCityFactor(0.70)}, // The rest: - // By VNG: Changed 0.3 -> 0.95 for Road and 0.3 -> 1.0 for Track. + // By VNG: Changed 0.3 -> 0.95 for Road. // They are already have very small speeds (10, 5 respectively). + // For tracks, weight is reduced to make them harder to take, but keep the full ETA speed. // There are no (99%) traffic lights or pedestrian crossings on this kind of roads. {HighwayType::HighwayService, InOutCityFactor(0.70)}, {HighwayType::HighwayRoad, InOutCityFactor(0.90)}, - {HighwayType::HighwayTrack, InOutCityFactor(1.0)}, + {HighwayType::HighwayTrack, InOutCityFactor({0.11, 1.0} /* in city */, {0.11, 1.0} /* out city */)}, {HighwayType::ManMadePier, InOutCityFactor(0.90)}, {HighwayType::RouteFerry, InOutCityFactor(0.90)},