public EdgeIteratorState getOtherContinue ( double prevLat , double prevLon , double prevOrientation ) { int tmpSign ; for ( EdgeIteratorState edge : allowedOutgoingEdges ) { GHPoint point = InstructionsHelper . getPointForOrientationCalculation ( edge , nodeAccess ) ; tmpSign = InstructionsHelper . calculateSign ( prevLat , prevLon , point . getLat ( ) , point . getLon ( ) , prevOrientation ) ; if ( Math . abs ( tmpSign ) <= 1 ) { return edge ; } } return null ; }
Returns an edge that has more or less in the same orientation as the prevEdge but is not the currentEdge . If there is one this indicates that we might need an instruction to help finding the correct edge out of the different choices . If there is none return null .