diff options
author | Constantin Shalnev <c.shalnev@corp.mail.ru> | 2015-07-24 20:23:37 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:57:43 +0300 |
commit | b0cf9fa6f67957670a53c1e98482f470e749d1fc (patch) | |
tree | 8f9d84e0cffefe5ef5b86e5d0474afc28bb3aafb /pedestrian_routing_benchmarks | |
parent | 5444d6b412c8a59fae06b3f66d7956e4801fcd0f (diff) |
Some functions and params were renamed with better understandable names
Diffstat (limited to 'pedestrian_routing_benchmarks')
-rw-r--r-- | pedestrian_routing_benchmarks/pedestrian_routing_benchmarks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pedestrian_routing_benchmarks/pedestrian_routing_benchmarks.cpp b/pedestrian_routing_benchmarks/pedestrian_routing_benchmarks.cpp index 4ef02dc4ac..f2f7d6b249 100644 --- a/pedestrian_routing_benchmarks/pedestrian_routing_benchmarks.cpp +++ b/pedestrian_routing_benchmarks/pedestrian_routing_benchmarks.cpp @@ -101,7 +101,7 @@ void TestRouter(routing::IRouter & router, m2::PointD const & startPos, m2::Poin double const elapsedSec = timer.ElapsedSeconds(); TEST_EQUAL(routing::IRouter::NoError, resultCode, ()); LOG(LINFO, ("Route polyline size:", route.GetPoly().GetSize())); - LOG(LINFO, ("Route distance, meters:", route.GetDistance())); + LOG(LINFO, ("Route distance, meters:", route.GetTotalDistance())); LOG(LINFO, ("Elapsed, seconds:", elapsedSec)); foundRoute.Swap(route); } @@ -119,7 +119,7 @@ void TestRouters(Index & index, m2::PointD const & startPos, m2::PointD const & TestRouter(*router, startPos, finalPos, routeFoundByAstar); double constexpr kEpsilon = 1e-6; - TEST(my::AlmostEqualAbs(routeFoundByAstar.GetDistance(), routeFoundByAstarBidirectional.GetDistance(), kEpsilon), ()); + TEST(my::AlmostEqualAbs(routeFoundByAstar.GetTotalDistance(), routeFoundByAstarBidirectional.GetTotalDistance(), kEpsilon), ()); } void TestTwoPointsOnFeature(m2::PointD const & startPos, m2::PointD const & finalPos) |