From 3e8672a268b78336140d62d981b929d1970aa91b Mon Sep 17 00:00:00 2001 From: Patrick Brosi Date: Wed, 6 Feb 2019 01:51:24 +0100 Subject: [PATCH] fix typo in heur dist --- src/pfaedle/router/Router.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);