Class AbstractAccessParser
java.lang.Object
com.graphhopper.routing.util.parsers.AbstractAccessParser
- All Implemented Interfaces:
TagParser
- Direct Known Subclasses:
BikeCommonAccessParser
,CarAccessParser
,FootAccessParser
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractAccessParser
(BooleanEncodedValue accessEnc, TransportationMode transportationMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
blockFords
(boolean blockFords) protected void
blockPrivate
(boolean blockPrivate) final BooleanEncodedValue
final String
getName()
protected void
handleBarrierEdge
(int edgeId, EdgeIntAccess edgeIntAccess, Map<String, Object> nodeTags) abstract void
handleWayTags
(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way) void
handleWayTags
(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way, IntsRef relationFlags) boolean
isBarrier
(ReaderNode node) boolean
toString()
-
Field Details
-
restrictionKeys
-
restrictedValues
-
intendedValues
-
barriers
-
accessEnc
-
-
Constructor Details
-
AbstractAccessParser
protected AbstractAccessParser(BooleanEncodedValue accessEnc, TransportationMode transportationMode)
-
-
Method Details
-
isBlockFords
public boolean isBlockFords() -
blockFords
protected void blockFords(boolean blockFords) -
blockPrivate
protected void blockPrivate(boolean blockPrivate) -
handleBarrierEdge
protected void handleBarrierEdge(int edgeId, EdgeIntAccess edgeIntAccess, Map<String, Object> nodeTags) -
handleWayTags
public void handleWayTags(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way, IntsRef relationFlags) - Specified by:
handleWayTags
in interfaceTagParser
-
handleWayTags
-
isBarrier
- Returns:
- true if the given OSM node blocks access for the specified restrictions, false otherwise
-
getAccessEnc
-
getRestrictionKeys
-
getName
-
toString
-