public abstract class BikeCommonFlagEncoder extends AbstractFlagEncoder
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
avoidHighwayTags |
protected HashSet<String> |
oppositeLanes |
protected Set<String> |
preferHighwayTags |
protected static int |
PUSHING_SECTION_SPEED |
protected HashSet<String> |
pushingSectionsHighways |
protected boolean |
speedTwoDirections |
protected Set<String> |
unpavedSurfaceTags |
absoluteBarriers, accessEnc, avgSpeedEnc, encodedValueLookup, ferries, intendedValues, LONG_TRIP_FERRY_SPEED, maxPossibleSpeed, oneways, potentialBarriers, restrictedValues, restrictions, roundaboutEnc, SHORT_TRIP_FERRY_SPEED, speedBits, speedDefault, speedFactor, UNKNOWN_DURATION_FERRY_SPEED| Modifier | Constructor and Description |
|---|---|
protected |
BikeCommonFlagEncoder(int speedBits,
double speedFactor,
int maxTurnCosts) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
applyMaxSpeed(ReaderWay way,
double speed)
Apply maxspeed: In contrast to the implementation of the AbstractFlagEncoder, we assume that
we can reach the maxspeed for bicycles in case that the road type speed is higher and not
just only 90%.
|
void |
createEncodedValues(List<EncodedValue> registerNewEncodedValue,
String prefix,
int index)
Defines bits used for edge flags used for access, speed etc.
|
EncodingManager.Access |
getAccess(ReaderWay way)
Decide whether a way is routable for a given mode of travel.
|
TransportationMode |
getTransportationMode() |
int |
getVersion() |
protected void |
handleSpeed(IntsRef edgeFlags,
ReaderWay way,
double speed) |
IntsRef |
handleWayTags(IntsRef edgeFlags,
ReaderWay way,
EncodingManager.Access access)
Analyze properties of a way and create the edge flags.
|
boolean |
supports(Class<?> feature)
Returns true if the feature class is supported like TurnWeighting or PriorityWeighting.
|
applyWayTags, blockBarriersByDefault, blockFords, blockPrivate, defineNodeBits, equals, flagsDefault, getAccessEnc, getAllShared, getAverageSpeedEnc, getBooleanEncodedValue, getConditionalTagInspector, getDecimalEncodedValue, getEncodedValue, getEnumEncodedValue, getFerrySpeed, getIntEncodedValue, getMaxSpeed, getMaxSpeed, getMaxTurnCosts, getPropertiesString, handleNodeTags, hasEncodedValue, hashCode, init, isBlockFords, isRegistered, parseSpeed, setConditionalTagInspector, setEncodedValueLookup, setSpeed, supportsTurnCostsprotected static final int PUSHING_SECTION_SPEED
protected boolean speedTwoDirections
protected BikeCommonFlagEncoder(int speedBits,
double speedFactor,
int maxTurnCosts)
public TransportationMode getTransportationMode()
public int getVersion()
public void createEncodedValues(List<EncodedValue> registerNewEncodedValue, String prefix, int index)
AbstractFlagEncodercreateEncodedValues in class AbstractFlagEncoderpublic EncodingManager.Access getAccess(ReaderWay way)
AbstractFlagEncodergetAccess in class AbstractFlagEncoderprotected double applyMaxSpeed(ReaderWay way, double speed)
applyMaxSpeed in class AbstractFlagEncoderway - needed to retrieve tagsspeed - speed guessed e.g. from the road type or other tagspublic IntsRef handleWayTags(IntsRef edgeFlags, ReaderWay way, EncodingManager.Access access)
AbstractFlagEncoderhandleWayTags in class AbstractFlagEncoderpublic boolean supports(Class<?> feature)
FlagEncodersupports in interface FlagEncodersupports in class AbstractFlagEncoderCopyright © 2012–2020. All rights reserved.