MCPcopy Create free account
hub / github.com/comaps/comaps / TrackHasTrafficPoints

Function TrackHasTrafficPoints

tools/track_analyzing/track_analyzer/cmd_tracks.cpp:94–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92};
93
94bool 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
107double EstimateDuration(MatchedTrack const & track, shared_ptr<EdgeEstimator> estimator, Geometry & geometry)
108{

Callers 1

CmdTracksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected