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

Function TimeBetweenSec

libs/routing/edge_estimator.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26geometry::Altitude constexpr kMountainSicknessAltitudeM = 2500;
27
28double TimeBetweenSec(ms::LatLon const & from, ms::LatLon const & to, double speedMpS)
29{
30 ASSERT_GREATER(speedMpS, 0.0, ("from:", from, "to:", to));
31
32 double const distanceM = ms::DistanceOnEarth(from, to);
33 return distanceM / speedMpS;
34}
35
36double CalcTrafficFactor(SpeedGroup speedGroup)
37{

Callers 3

CalcHeuristicMethod · 0.70
CalcLeapWeightMethod · 0.70
CalcOffroadMethod · 0.70

Calls 1

DistanceOnEarthFunction · 0.50

Tested by

no test coverage detected