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:
parent
06328dec3d
commit
1e819cf5bd
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ final class StdPath extends OsmPath {
|
|||
|
||||
double speed; // Travel speed
|
||||
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
|
||||
speed = rc.maxSpeed * 3.6;
|
||||
speed = (speed * FastMath.exp(-3.5 * Math.abs(incline + 0.05))) / 3.6;
|
||||
|
|
Loading…
Reference in a new issue