public abstract class VehicleTagParser extends Object implements TagParser
EncodingManager| Modifier and Type | Field and Description |
|---|---|
protected BooleanEncodedValue |
accessEnc |
protected DecimalEncodedValue |
avgSpeedEnc |
protected Set<String> |
barriers |
protected Set<String> |
ferries |
protected FerrySpeedCalculator |
ferrySpeedCalc |
protected Set<String> |
intendedValues |
protected double |
maxPossibleSpeed |
protected Set<String> |
oneways |
protected Set<String> |
restrictedValues |
protected List<String> |
restrictions |
protected BooleanEncodedValue |
roundaboutEnc |
| Modifier | Constructor and Description |
|---|---|
protected |
VehicleTagParser(BooleanEncodedValue accessEnc,
DecimalEncodedValue speedEnc,
String name,
BooleanEncodedValue roundaboutEnc,
DecimalEncodedValue turnCostEnc,
TransportationMode transportationMode,
double maxPossibleSpeed) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
blockFords(boolean blockFords) |
protected void |
blockPrivate(boolean blockPrivate) |
abstract WayAccess |
getAccess(ReaderWay way)
Decide whether a way is routable for a given mode of travel.
|
BooleanEncodedValue |
getAccessEnc() |
DecimalEncodedValue |
getAverageSpeedEnc() |
ConditionalTagInspector |
getConditionalTagInspector() |
double |
getMaxSpeed() |
protected static double |
getMaxSpeed(ReaderWay way) |
String |
getName() |
List<String> |
getRestrictions() |
DecimalEncodedValue |
getTurnCostEnc() |
IntsRef |
handleNodeTags(IntsRef edgeFlags,
Map<String,Object> nodeTags)
Updates the given edge flags based on node tags
|
protected abstract IntsRef |
handleWayTags(IntsRef edgeFlags,
ReaderWay way)
Analyze properties of a way and create the edge flags.
|
IntsRef |
handleWayTags(IntsRef edgeFlags,
ReaderWay way,
IntsRef relationFlags) |
void |
init(DateRangeParser dateRangeParser) |
boolean |
isBarrier(ReaderNode node) |
boolean |
isBlockFords() |
protected static boolean |
isValidSpeed(double speed) |
protected void |
setConditionalTagInspector(ConditionalTagInspector inspector) |
protected void |
setSpeed(boolean reverse,
IntsRef edgeFlags,
double speed) |
boolean |
supportsTurnCosts() |
String |
toString() |
protected final BooleanEncodedValue accessEnc
protected final DecimalEncodedValue avgSpeedEnc
protected final BooleanEncodedValue roundaboutEnc
protected final double maxPossibleSpeed
protected final FerrySpeedCalculator ferrySpeedCalc
protected VehicleTagParser(BooleanEncodedValue accessEnc, DecimalEncodedValue speedEnc, String name, BooleanEncodedValue roundaboutEnc, DecimalEncodedValue turnCostEnc, TransportationMode transportationMode, double maxPossibleSpeed)
public void init(DateRangeParser dateRangeParser)
protected void setConditionalTagInspector(ConditionalTagInspector inspector)
public boolean isBlockFords()
protected void blockFords(boolean blockFords)
protected void blockPrivate(boolean blockPrivate)
public ConditionalTagInspector getConditionalTagInspector()
public IntsRef handleWayTags(IntsRef edgeFlags, ReaderWay way, IntsRef relationFlags)
handleWayTags in interface TagParserprotected abstract IntsRef handleWayTags(IntsRef edgeFlags, ReaderWay way)
public IntsRef handleNodeTags(IntsRef edgeFlags, Map<String,Object> nodeTags)
public abstract WayAccess getAccess(ReaderWay way)
public boolean isBarrier(ReaderNode node)
public double getMaxSpeed()
protected static double getMaxSpeed(ReaderWay way)
Double.NaN if no maxspeed foundprotected static boolean isValidSpeed(double speed)
Double.NaNpublic final DecimalEncodedValue getAverageSpeedEnc()
public final BooleanEncodedValue getAccessEnc()
protected void setSpeed(boolean reverse,
IntsRef edgeFlags,
double speed)
public boolean supportsTurnCosts()
public DecimalEncodedValue getTurnCostEnc()
public final String getName()
Copyright © 2012–2022. All rights reserved.