From 4e6bdf28cccc92cf6bad1e0542d87dbc04aed81a Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 10 Jun 2014 17:26:22 +0200 Subject: [PATCH] fixes #1041, some only_ turn restrictions are inverted under certain conditions --- Contractor/EdgeBasedGraphFactory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Contractor/EdgeBasedGraphFactory.cpp b/Contractor/EdgeBasedGraphFactory.cpp index d42a782be..1e4e3810d 100644 --- a/Contractor/EdgeBasedGraphFactory.cpp +++ b/Contractor/EdgeBasedGraphFactory.cpp @@ -309,7 +309,7 @@ void EdgeBasedGraphFactory::CompressGeometry() } // check if v is a via node for a turn restriction, i.e. a 'directed' barrier node - if (m_restriction_map->IsNodeAViaNode(v)) + if (m_restriction_map->IsViaNode(v)) { continue; } @@ -608,6 +608,7 @@ EdgeBasedGraphFactory::GenerateEdgeExpandedEdges(const std::string &original_edg (to_node_of_only_restriction == SPECIAL_NODEID) && (w != to_node_of_only_restriction)) { + // We are at an only_-restriction but not at the right turn. ++restricted_turns_counter; continue; }