fix issue #1025:
- add function to count directed outgoing edges - generate correct instruction for staying on a roundabout - move test from @bug namespace to the general one
This commit is contained in:
@@ -728,7 +728,7 @@ TurnInstruction EdgeBasedGraphFactory::AnalyzeTurn(const NodeID u,
|
||||
if (data1.roundabout && data2.roundabout)
|
||||
{
|
||||
// Is a turn possible? If yes, we stay on the roundabout!
|
||||
if (1 == m_node_based_graph->GetOutDegree(v))
|
||||
if (1 == m_node_based_graph->GetDirectedOutDegree(v))
|
||||
{
|
||||
// No turn possible.
|
||||
return TurnInstruction::NoTurn;
|
||||
|
||||
Reference in New Issue
Block a user