Fix regression of travel time calculation

This fixes a regression in the travel time calculation in the kinematic model caused by combining the following two commits:
* bd025875d4 (diff-59799a4a78f59692f35951f94cd8733f7e34718c2d60a6248685159f637517a4)
* 57da34d205 (diff-59799a4a78f59692f35951f94cd8733f7e34718c2d60a6248685159f637517a4)
This commit is contained in:
quaelnix 2023-01-10 15:32:17 +01:00 committed by GitHub
parent 06328dec3d
commit 1e819cf5bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,7 +212,7 @@ final class StdPath extends OsmPath {
double speed; // Travel speed double speed; // Travel speed
double f_roll = rc.totalMass * GRAVITY * (rc.defaultC_r + incline); double f_roll = rc.totalMass * GRAVITY * (rc.defaultC_r + incline);
if (rc.footMode || rc.expctxWay.getCostfactor() > 4.9) { if (rc.footMode) {
// Use Tobler's hiking function for walking sections // Use Tobler's hiking function for walking sections
speed = rc.maxSpeed * 3.6; speed = rc.maxSpeed * 3.6;
speed = (speed * FastMath.exp(-3.5 * Math.abs(incline + 0.05))) / 3.6; speed = (speed * FastMath.exp(-3.5 * Math.abs(incline + 0.05))) / 3.6;