| 92 | }; |
| 93 | |
| 94 | bool TrackHasTrafficPoints(MatchedTrack const & track) |
| 95 | { |
| 96 | for (MatchedTrackPoint const & point : track) |
| 97 | { |
| 98 | size_t const index = static_cast<size_t>(point.GetDataPoint().m_traffic); |
| 99 | CHECK_LESS(index, static_cast<size_t>(traffic::SpeedGroup::Count), ()); |
| 100 | if (traffic::kSpeedGroupThresholdPercentage[index] != 100) |
| 101 | return true; |
| 102 | } |
| 103 | |
| 104 | return false; |
| 105 | } |
| 106 | |
| 107 | double EstimateDuration(MatchedTrack const & track, shared_ptr<EdgeEstimator> estimator, Geometry & geometry) |
| 108 | { |