From 0dc77b056ad99778e7f5fe246ab837f47dbefa37 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Wed, 8 Feb 2012 11:46:34 +0100 Subject: [PATCH] Fixes issue #46. Turn instructions are much more verbose now where the streets have no name. --- Contractor/EdgeBasedGraphFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contractor/EdgeBasedGraphFactory.cpp b/Contractor/EdgeBasedGraphFactory.cpp index 06bcfdcc6..ae5cb8bc2 100644 --- a/Contractor/EdgeBasedGraphFactory.cpp +++ b/Contractor/EdgeBasedGraphFactory.cpp @@ -314,7 +314,7 @@ short EdgeBasedGraphFactory::AnalyzeTurn(const NodeID u, const NodeID v, const N } //If street names stay the same and if we are certain that it is not a roundabout, we skip it. - if(data1.nameID == data2.nameID) + if( (_nodeBasedGraph->GetOutDegree(v) == 2 ) && (0 != data1.nameID && data1.nameID == data2.nameID) ) return TurnInstructions.NoTurn; return TurnInstructions.GetTurnDirectionOfInstruction(angle);