Class AbstractAccessParser

java.lang.Object
com.graphhopper.routing.util.parsers.AbstractAccessParser
All Implemented Interfaces:
TagParser
Direct Known Subclasses:
BikeCommonAccessParser, CarAccessParser, FootAccessParser

public abstract class AbstractAccessParser extends Object implements TagParser
  • Field Details

    • restrictionKeys

      protected final List<String> restrictionKeys
    • restrictedValues

      protected final Set<String> restrictedValues
    • intendedValues

      protected final Set<String> intendedValues
    • barriers

      protected final Set<String> barriers
    • accessEnc

      protected final BooleanEncodedValue accessEnc
  • Constructor Details

  • 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 interface TagParser
    • handleWayTags

      public abstract void handleWayTags(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way)
    • isBarrier

      public boolean isBarrier(ReaderNode node)
      Returns:
      true if the given OSM node blocks access for the specified restrictions, false otherwise
    • getAccessEnc

      public final BooleanEncodedValue getAccessEnc()
    • getRestrictionKeys

      public final List<String> getRestrictionKeys()
    • getName

      public final String getName()
    • toString

      public String toString()
      Overrides:
      toString in class Object