public abstract class BikeCommonAverageSpeedParser extends AbstractAverageSpeedParser implements TagParser
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
intendedValues |
static double |
MAX_SPEED |
protected static int |
MIN_SPEED |
protected static int |
PUSHING_SECTION_SPEED |
protected HashSet<String> |
pushingSectionsHighways |
avgSpeedEnc, ferries, ferrySpeedCalc, maxPossibleSpeed| Modifier | Constructor and Description |
|---|---|
protected |
BikeCommonAverageSpeedParser(DecimalEncodedValue speedEnc,
EnumEncodedValue<Smoothness> smoothnessEnc) |
| Modifier and Type | Method and Description |
|---|---|
double |
applyMaxSpeed(ReaderWay way,
double speed,
boolean bwd) |
void |
handleWayTags(IntsRef edgeFlags,
ReaderWay way) |
getAverageSpeedEnc, getMaxSpeed, getMaxSpeed, getName, handleWayTags, isValidSpeed, setSpeed, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithandleWayTagspublic static double MAX_SPEED
protected static final int PUSHING_SECTION_SPEED
protected static final int MIN_SPEED
protected BikeCommonAverageSpeedParser(DecimalEncodedValue speedEnc, EnumEncodedValue<Smoothness> smoothnessEnc)
public double applyMaxSpeed(ReaderWay way, double speed, boolean bwd)
way - needed to retrieve tagsspeed - speed guessed e.g. from the road type or other tagspublic void handleWayTags(IntsRef edgeFlags, ReaderWay way)
handleWayTags in class AbstractAverageSpeedParserCopyright © 2012–2023. All rights reserved.