Class RestrictionSetter
java.lang.Object
com.graphhopper.routing.util.parsers.RestrictionSetter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.carrotsearch.hppc.IntIntMap
void
setRestrictions
(List<Pair<GraphRestriction, RestrictionType>> restrictions, BooleanEncodedValue turnRestrictionEnc) Adds all the turn restriction entries to the graph that are needed to enforce the given restrictions, for a single turn cost encoded value.
-
Constructor Details
-
RestrictionSetter
-
-
Method Details
-
setRestrictions
public void setRestrictions(List<Pair<GraphRestriction, RestrictionType>> restrictions, BooleanEncodedValue turnRestrictionEnc) Adds all the turn restriction entries to the graph that are needed to enforce the given restrictions, for a single turn cost encoded value. Implementing via-way turn restrictions requires adding artificial edges to the graph, which is also handled here. Since we keep track of the added artificial edges here it is important to only use one RestrictionSetter instance for **all** turn restrictions and vehicle types. -
getArtificialEdgesByEdges
public com.carrotsearch.hppc.IntIntMap getArtificialEdgesByEdges()
-