From 2d4deaf14e66f1261d5c0692423eecdb629c26fc Mon Sep 17 00:00:00 2001 From: GregorRyb Date: Thu, 16 May 2024 11:20:13 +0200 Subject: [PATCH] update cycling speed --- .../input/metropole-ruhr-v2.0.mode-vehicles.xml | 6 ++++-- src/main/java/org/matsim/prepare/CreateSupply.java | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scenarios/metropole-ruhr-v2.0/input/metropole-ruhr-v2.0.mode-vehicles.xml b/scenarios/metropole-ruhr-v2.0/input/metropole-ruhr-v2.0.mode-vehicles.xml index 8e2ed28..7d9a612 100644 --- a/scenarios/metropole-ruhr-v2.0/input/metropole-ruhr-v2.0.mode-vehicles.xml +++ b/scenarios/metropole-ruhr-v2.0/input/metropole-ruhr-v2.0.mode-vehicles.xml @@ -44,7 +44,9 @@ - + + @@ -299,4 +301,4 @@ - \ No newline at end of file + diff --git a/src/main/java/org/matsim/prepare/CreateSupply.java b/src/main/java/org/matsim/prepare/CreateSupply.java index 2e1a499..34c67da 100644 --- a/src/main/java/org/matsim/prepare/CreateSupply.java +++ b/src/main/java/org/matsim/prepare/CreateSupply.java @@ -365,9 +365,9 @@ private void onLinkCreated(Link link) { link.setAllowedModes(modes); } - // all regular bike links should have an infrastructure speed factor of 0.5 + // all regular bike links should have an infrastructure speed factor of 0.64 according to the rvr if (link.getAllowedModes().contains(TransportMode.bike)) { - link.getAttributes().putAttribute(BicycleUtils.BICYCLE_INFRASTRUCTURE_SPEED_FACTOR, 0.5); + link.getAttributes().putAttribute(BicycleUtils.BICYCLE_INFRASTRUCTURE_SPEED_FACTOR, 0.64); } }