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

Method CalcHeuristic

libs/routing/edge_estimator.cpp:523–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523double EdgeEstimator::CalcHeuristic(ms::LatLon const & from, ms::LatLon const & to) const
524{
525 // For the correct A*, we should use maximum _possible_ speed here, including:
526 // default model, feature stored, unlimited autobahn, ferry or rail transit.
527 return TimeBetweenSec(from, to, m_maxWeightSpeedMpS);
528}
529
530double EdgeEstimator::ComputeDefaultLeapWeightSpeed() const
531{

Callers 2

HeuristicCostEstimateMethod · 0.80
HeuristicCostEstimateMethod · 0.80

Calls 1

TimeBetweenSecFunction · 0.70

Tested by

no test coverage detected