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

Method GetSpeedKMpH

libs/routing/routing_tests/routing_algorithm.hpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 virtual double GetMaxSpeedKMpH() const = 0;
37
38 double GetSpeedKMpH(Edge const & edge, SpeedParams const & speedParams) const
39 {
40 double const speedKMpH = (edge.IsFake() ? GetMaxSpeedKMpH() : GetSpeedKMpH(edge.GetFeatureId(), speedParams));
41 ASSERT_LESS_OR_EQUAL(speedKMpH, GetMaxSpeedKMpH(), ());
42 return speedKMpH;
43 }
44};
45
46class UndirectedGraph : public AStarGraph<uint32_t, SimpleEdge, double>

Callers

nothing calls this directly

Calls 2

IsFakeMethod · 0.45
GetFeatureIdMethod · 0.45

Tested by

no test coverage detected