fixes issue #1019:

- fix ignored turn restriction on chains of degree-2 nodes
- add a cucumber test to test for potential regressions
This commit is contained in:
Dennis Luxen
2014-05-19 12:53:27 +02:00
parent 75a2d4d00a
commit d028a30f87
4 changed files with 87 additions and 6 deletions
+6
View File
@@ -305,6 +305,12 @@ void EdgeBasedGraphFactory::CompressGeometry()
continue;
}
// check if v is a via node for a turn restriction, i.e. a 'directed' barrier node
if (m_restriction_map->IsNodeAViaNode(v))
{
continue;
}
const bool reverse_edge_order =
!(m_node_based_graph->GetEdgeData(m_node_based_graph->BeginEdges(v)).forward);
const EdgeID forward_e2 = m_node_based_graph->BeginEdges(v) + reverse_edge_order;