diff --git a/src/pfaedle/router/Router.cpp b/src/pfaedle/router/Router.cpp index 4835653..38e49c7 100644 --- a/src/pfaedle/router/Router.cpp +++ b/src/pfaedle/router/Router.cpp @@ -170,7 +170,7 @@ DistHeur::DistHeur(uint8_t minLvl, const RoutingOpts& rOpts, EdgeCost DistHeur::operator()(const trgraph::Edge* a, const std::set& 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);