Merge pull request #126 from Phyks/travelTime

Fix travel time computation
This commit is contained in:
abrensch 2018-11-23 11:32:02 +01:00 committed by GitHub
commit 0faae6dea7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 58 deletions

View file

@ -396,10 +396,8 @@ abstract class OsmPath implements OsmLinkHolder
traffic += dist*rc.expctxWay.getTrafficSourceDensity()*Math.pow(cost2/10000.f,rc.trafficSourceExponent);
}
String wayKeyValues = "";
if ( message != null ) {
wayKeyValues = rc.expctxWay.getKeyValueDescription( isReverse, description );
}
// compute kinematic
computeKinematic( rc, dist, delta_h, detailMode );
if ( message != null )
{
@ -411,7 +409,7 @@ abstract class OsmPath implements OsmLinkHolder
message.lon = lon2;
message.lat = lat2;
message.ele = ele2;
message.wayKeyValues = wayKeyValues;
message.wayKeyValues = rc.expctxWay.getKeyValueDescription( isReverse, description );
}
if ( stopAtEndpoint )