fix typo in heur dist

This commit is contained in:
Patrick Brosi 2019-02-06 01:51:24 +01:00
parent 02bda75f01
commit 3e8672a268

View file

@ -170,7 +170,7 @@ DistHeur::DistHeur(uint8_t minLvl, const RoutingOpts& rOpts,
EdgeCost DistHeur::operator()(const trgraph::Edge* a,
const std::set<trgraph::Edge*>& b) const {
UNUSED(b);
double cur = webMercMeterDist(*a->getTo()->pl().getGeom(), _center) *
double cur = webMercMeterDist(*a->getFrom()->pl().getGeom(), _center) *
_rOpts.levelPunish[_lvl];
return EdgeCost(cur - _maxCentD, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);