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

Method GetSummaryLengthBetweenPointsMeters

libs/routing/checkpoints.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 ++m_passedIdx;
46}
47double Checkpoints::GetSummaryLengthBetweenPointsMeters() const
48{
49 double dist = 0.0;
50 for (size_t i = 1; i < m_points.size(); ++i)
51 dist += mercator::DistanceOnEarth(m_points[i - 1], m_points[i]);
52
53 return dist;
54}
55
56std::string DebugPrint(Checkpoints const & checkpoints)
57{

Callers 2

CalculateRouteMethod · 0.80
DoCalculateRouteMethod · 0.80

Calls 2

DistanceOnEarthFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected