public void addTurnInfo ( int fromEdge , int viaNode , int toEdge , long turnFlags ) { // no need to store turn information if ( turnFlags == EMPTY_FLAGS ) return ; mergeOrOverwriteTurnInfo ( fromEdge , viaNode , toEdge , turnFlags , true ) ; }
Add an entry which is a turn restriction or cost information via the turnFlags . Overwrite existing information if it is the same edges and node .