Fixes #2335, map matching was using shortest path with uturns disabled

This commit is contained in:
Patrick Niklaus 2016-04-28 12:02:31 +02:00
parent e88106e990
commit 930f6df2cb
No known key found for this signature in database
GPG Key ID: E426891B5F978B1B

View File

@ -185,7 +185,7 @@ Status MatchPlugin::HandleRequest(const api::MatchParameters &parameters,
}
// 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);
}