public class CarAverageSpeedParser extends AbstractAverageSpeedParser implements TagParser
| Modifier and Type | Field and Description |
|---|---|
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 |
avgSpeedEnc, ferries, ferrySpeedCalc, maxPossibleSpeed| Constructor and Description |
|---|
CarAverageSpeedParser(DecimalEncodedValue speedEnc,
double maxPossibleSpeed) |
CarAverageSpeedParser(EncodedValueLookup lookup,
PMap properties) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
applyBadSurfaceSpeed(ReaderWay way,
double speed) |
protected double |
applyMaxSpeed(ReaderWay way,
double speed,
boolean bwd) |
protected double |
getSpeed(ReaderWay way) |
void |
handleWayTags(IntsRef edgeFlags,
ReaderWay way) |
getAverageSpeedEnc, getMaxSpeed, getMaxSpeed, getName, handleWayTags, isValidSpeed, setSpeed, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithandleWayTagspublic static final double CAR_MAX_SPEED
public CarAverageSpeedParser(EncodedValueLookup lookup, PMap properties)
public CarAverageSpeedParser(DecimalEncodedValue speedEnc, double maxPossibleSpeed)
protected double getSpeed(ReaderWay way)
public void handleWayTags(IntsRef edgeFlags, ReaderWay way)
handleWayTags in class AbstractAverageSpeedParserprotected double applyMaxSpeed(ReaderWay way, double speed, boolean bwd)
way - needed to retrieve tagsspeed - speed guessed e.g. from the road type or other tagsprotected double applyBadSurfaceSpeed(ReaderWay way, double speed)
way - needed to retrieve tagsspeed - speed guessed e.g. from the road type or other tagsCopyright © 2012–2023. All rights reserved.