public double calcTurnWeight ( int edgeFrom , int nodeVia , int edgeTo ) { long turnFlags = turnCostExt . getTurnCostFlags ( edgeFrom , nodeVia , edgeTo ) ; if ( turnCostEncoder . isTurnRestricted ( turnFlags ) ) return Double . POSITIVE_INFINITY ; return turnCostEncoder . getTurnCost ( turnFlags ) ; }
This method calculates the turn weight separately .