From ef958750e251bf0204b61a77e1c4d941b3c41f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20G=C3=BCndling?= Date: Fri, 7 Jun 2024 15:50:49 +0200 Subject: [PATCH] fix speeds --- include/osr/routing/profiles/bike.h | 2 +- include/osr/routing/profiles/foot.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/osr/routing/profiles/bike.h b/include/osr/routing/profiles/bike.h index 19de22b..1aa18f0 100644 --- a/include/osr/routing/profiles/bike.h +++ b/include/osr/routing/profiles/bike.h @@ -120,7 +120,7 @@ struct bike { direction, std::uint16_t const dist) { if (e.is_bike_accessible()) { - return static_cast(std::round(dist / 1.2F)); + return static_cast(std::round(dist / 2.8F)); } else { return kInfeasible; } diff --git a/include/osr/routing/profiles/foot.h b/include/osr/routing/profiles/foot.h index f078c0c..46ad239 100644 --- a/include/osr/routing/profiles/foot.h +++ b/include/osr/routing/profiles/foot.h @@ -264,7 +264,8 @@ struct foot { std::uint16_t const dist) { if ((e.is_foot_accessible() || e.is_bike_accessible()) && (!IsWheelchair || !e.is_steps())) { - return static_cast(std::round(dist / 1.2F)); + return static_cast( + std::round(dist / (IsWheelchair ? 0.8 : 1.1F))); } else { return kInfeasible; }