use of org.opentripplanner.common.TurnRestrictionType in project OpenTripPlanner by opentripplanner.
the class TurnRestrictionTest method DisallowTurn.
private void DisallowTurn(StreetEdge from, StreetEdge to) {
TurnRestrictionType rType = TurnRestrictionType.NO_TURN;
TraverseModeSet restrictedModes = new TraverseModeSet(TraverseMode.CAR);
TurnRestriction restrict = new TurnRestriction(from, to, rType, restrictedModes);
_graph.addTurnRestriction(from, restrict);
}
use of org.opentripplanner.common.TurnRestrictionType in project OpenTripPlanner by opentripplanner.
the class TurnCostTest method DisallowTurn.
private void DisallowTurn(StreetEdge from, StreetEdge to) {
TurnRestrictionType rType = TurnRestrictionType.NO_TURN;
TraverseModeSet restrictedModes = new TraverseModeSet(TraverseMode.CAR);
TurnRestriction restrict = new TurnRestriction(from, to, rType, restrictedModes);
_graph.addTurnRestriction(from, restrict);
}
Aggregations