Skip to content

Commit

Permalink
update cycling speed
Browse files Browse the repository at this point in the history
  • Loading branch information
GregorRyb committed May 16, 2024
1 parent f3fcf87 commit 2d4deaf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
<vehicleType id="bike">
<length meter="2.0"/>
<width meter="1.0"/>
<maximumVelocity meterPerSecond="6.82"/> <!-- from MiD average bike speed in berlin * 2, so on most links they go 12km/h and on bike highways close to 24km/h -->
<!--
<maximumVelocity meterPerSecond="6.82"/> from MiD average bike speed in berlin * 2, so on most links they go 12km/h and on bike highways close to 24km/h -->
<maximumVelocity meterPerSecond="5"/> <!-- based on the rvr -->
<passengerCarEquivalents pce="0.1"/>
</vehicleType>

Expand Down Expand Up @@ -299,4 +301,4 @@
</costInformation>
<networkMode networkMode="truck26t"/>
</vehicleType>
</vehicleDefinitions>
</vehicleDefinitions>
4 changes: 2 additions & 2 deletions src/main/java/org/matsim/prepare/CreateSupply.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 2d4deaf

Please sign in to comment.