From 930f6df2cbb7214e9cb196a392c0ab4f3d4dd981 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Thu, 28 Apr 2016 12:02:31 +0200 Subject: [PATCH] Fixes #2335, map matching was using shortest path with uturns disabled --- src/engine/plugins/match.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/plugins/match.cpp b/src/engine/plugins/match.cpp index bd3a970f7..ac53c070d 100644 --- a/src/engine/plugins/match.cpp +++ b/src/engine/plugins/match.cpp @@ -185,7 +185,7 @@ Status MatchPlugin::HandleRequest(const api::MatchParameters ¶meters, } // force uturns to be on, since we split the phantom nodes anyway and only have bi-directional // phantom nodes for possible uturns - shortest_path(sub_routes[index].segment_end_coordinates, {true}, sub_routes[index]); + shortest_path(sub_routes[index].segment_end_coordinates, {false}, sub_routes[index]); BOOST_ASSERT(sub_routes[index].shortest_path_length != INVALID_EDGE_WEIGHT); }