public class CarTagParser extends VehicleTagParser
| Modifier and Type | Field and Description |
|---|---|
protected int |
badSurfaceSpeed |
protected Set<String> |
badSurfaceSpeedMap |
static double |
CAR_MAX_SPEED |
protected Map<String,Integer> |
defaultSpeedMap
A map which associates string to speed.
|
protected Map<String,Integer> |
trackTypeSpeedMap |
accessEnc, avgSpeedEnc, barriers, ferries, ferrySpeedCalc, intendedValues, maxPossibleSpeed, oneways, restrictedValues, restrictions, roundaboutEnc| Constructor and Description |
|---|
CarTagParser(BooleanEncodedValue accessEnc,
DecimalEncodedValue speedEnc,
DecimalEncodedValue turnCostEnc,
BooleanEncodedValue roundaboutEnc,
PMap properties,
TransportationMode transportationMode,
double maxPossibleSpeed) |
CarTagParser(EncodedValueLookup lookup,
PMap properties) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
applyBadSurfaceSpeed(ReaderWay way,
double speed) |
protected double |
applyMaxSpeed(ReaderWay way,
double speed) |
WayAccess |
getAccess(ReaderWay way)
Decide whether a way is routable for a given mode of travel.
|
protected double |
getSpeed(ReaderWay way) |
IntsRef |
handleWayTags(IntsRef edgeFlags,
ReaderWay way)
Analyze properties of a way and create the edge flags.
|
protected boolean |
isBackwardOneway(ReaderWay way)
make sure that isOneway is called before
|
protected boolean |
isForwardOneway(ReaderWay way)
make sure that isOneway is called before
|
protected boolean |
isOneway(ReaderWay way) |
blockFords, blockPrivate, getAccessEnc, getAverageSpeedEnc, getConditionalTagInspector, getMaxSpeed, getMaxSpeed, getName, getRestrictions, getTurnCostEnc, handleNodeTags, handleWayTags, init, isBarrier, isBlockFords, isValidSpeed, setConditionalTagInspector, setSpeed, supportsTurnCosts, toStringpublic static final double CAR_MAX_SPEED
protected int badSurfaceSpeed
public CarTagParser(EncodedValueLookup lookup, PMap properties)
public CarTagParser(BooleanEncodedValue accessEnc, DecimalEncodedValue speedEnc, DecimalEncodedValue turnCostEnc, BooleanEncodedValue roundaboutEnc, PMap properties, TransportationMode transportationMode, double maxPossibleSpeed)
protected double getSpeed(ReaderWay way)
public WayAccess getAccess(ReaderWay way)
VehicleTagParsergetAccess in class VehicleTagParserpublic IntsRef handleWayTags(IntsRef edgeFlags, ReaderWay way)
VehicleTagParserhandleWayTags in class VehicleTagParserprotected double applyMaxSpeed(ReaderWay way, double speed)
way - needed to retrieve tagsspeed - speed guessed e.g. from the road type or other tagsprotected boolean isBackwardOneway(ReaderWay way)
protected boolean isForwardOneway(ReaderWay way)
protected boolean isOneway(ReaderWay way)
protected double applyBadSurfaceSpeed(ReaderWay way, double speed)
way - needed to retrieve tagsspeed - speed guessed e.g. from the road type or other tagsCopyright © 2012–2022. All rights reserved.