forked from organicmaps/organicmaps
[routing] Pull request #6014 review fixes
This commit is contained in:
parent
e5c495eb94
commit
f7ff3fa7ab
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ double CarEdgeEstimator::CalcSegmentWeight(Segment const & segment, RoadGeometry
|
|||
ASSERT_LESS(speedGroup, SpeedGroup::Count, ());
|
||||
double const trafficFactor = CalcTrafficFactor(speedGroup);
|
||||
result *= trafficFactor;
|
||||
if (trafficFactor > 1.0)
|
||||
if (speedGroup != SpeedGroup::Unknown && speedGroup != SpeedGroup::G5)
|
||||
result *= kTimePenalty;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue