public class FootFlagEncoder extends AbstractFlagEncoder
TurnCostEncoder.NoTurnCostsEncoder| Modifier and Type | Field and Description |
|---|---|
protected HashSet<String> |
sidewalksNoValues |
protected HashSet<String> |
sidewalkValues |
absoluteBarriers, acceptBit, backwardBit, directionBitMask, edgeInExplorer, edgeOutExplorer, ferries, ferryBit, forwardBit, intendedValues, K_BACKWARD, K_FORWARD, LONG_TRIP_FERRY_SPEED, maxPossibleSpeed, oneways, potentialBarriers, properties, restrictedValues, restrictions, roundaboutBit, SHORT_TRIP_FERRY_SPEED, speedBits, speedEncoder, speedFactor, UNKNOWN_DURATION_FERRY_SPEEDK_ROUNDABOUT| Constructor and Description |
|---|
FootFlagEncoder()
Should be only instantiated via EncodingManager
|
FootFlagEncoder(int speedBits,
double speedFactor) |
FootFlagEncoder(PMap properties) |
FootFlagEncoder(String propertiesStr) |
| Modifier and Type | Method and Description |
|---|---|
long |
acceptWay(ReaderWay way)
Some ways are okay but not separate for pedestrians.
|
int |
defineRelationBits(int index,
int shift)
Defines the bits which are used for relation flags.
|
int |
defineTurnBits(int index,
int shift)
Foot flag encoder does not provide any turn cost / restrictions
|
int |
defineWayBits(int index,
int shift)
Defines bits used for edge flags used for access, speed etc.
|
double |
getDouble(long flags,
int key)
Returns arbitrary double value identified by the specified key.
|
double |
getSpeed(long flags) |
double |
getTurnCost(long flag)
Foot flag encoder does not provide any turn cost / restrictions
|
long |
getTurnFlags(boolean restricted,
double costs) |
int |
getVersion() |
protected int |
handlePriority(ReaderWay way,
int priorityFromRelation) |
long |
handleRelationTags(ReaderRelation relation,
long oldRelationFlags)
Analyze the properties of a relation and create the routing flags for the second read step.
|
long |
handleWayTags(ReaderWay way,
long allowed,
long relationFlags)
Analyze properties of a way and create the routing flags.
|
boolean |
isTurnRestricted(long flag)
Foot flag encoder does not provide any turn cost / restrictions
|
boolean |
supports(Class<?> feature)
Returns true if the feature class is supported like TurnWeighting or PriorityWeighting.
|
String |
toString() |
applyMaxSpeed, applyWayTags, defineNodeBits, equals, flagsDefault, getAnnotation, getConditionalTagInspector, getFerrySpeed, getLong, getMaxSpeed, getMaxSpeed, getPropertiesString, getReverseSpeed, handleNodeTags, hashCode, init, isAccept, isBackward, isBlockFords, isBool, isFerry, isForward, isRegistered, parseSpeed, reverseFlags, setAccess, setBlockByDefault, setBlockFords, setBool, setConditionalTagInspector, setDouble, setLong, setLowSpeed, setProperties, setRegistered, setReverseSpeed, setSpeedpublic FootFlagEncoder()
public FootFlagEncoder(PMap properties)
public FootFlagEncoder(String propertiesStr)
public FootFlagEncoder(int speedBits,
double speedFactor)
public int getVersion()
public int defineWayBits(int index,
int shift)
AbstractFlagEncoderdefineWayBits in class AbstractFlagEncodershift - bit offset for the first bit used by this encoderpublic int defineRelationBits(int index,
int shift)
AbstractFlagEncoderdefineRelationBits in class AbstractFlagEncoderpublic int defineTurnBits(int index,
int shift)
defineTurnBits in class AbstractFlagEncodershift - bit offset for the first bit used by this encoderpublic boolean isTurnRestricted(long flag)
isTurnRestricted in interface TurnCostEncoderisTurnRestricted in class AbstractFlagEncoderfalsepublic double getTurnCost(long flag)
getTurnCost in interface TurnCostEncodergetTurnCost in class AbstractFlagEncoderpublic long getTurnFlags(boolean restricted,
double costs)
getTurnFlags in interface TurnCostEncodergetTurnFlags in class AbstractFlagEncoderrestricted - true if restricted turn, equivalent to specifying of costs
Double.POSITIVE_INFINITYcosts - the turn costs, specify 0 or Double.POSITIVE_INFINITY if restricted == true.
Only used if restricted == false.public long acceptWay(ReaderWay way)
acceptWay in class AbstractFlagEncoderpublic long handleRelationTags(ReaderRelation relation, long oldRelationFlags)
AbstractFlagEncoderhandleRelationTags in class AbstractFlagEncoderpublic long handleWayTags(ReaderWay way, long allowed, long relationFlags)
AbstractFlagEncoderhandleWayTags in class AbstractFlagEncoderpublic double getDouble(long flags,
int key)
FlagEncodergetDouble in interface FlagEncodergetDouble in class AbstractFlagEncoderprotected int handlePriority(ReaderWay way, int priorityFromRelation)
public boolean supports(Class<?> feature)
FlagEncodersupports in interface FlagEncodersupports in class AbstractFlagEncoderpublic double getSpeed(long flags)
getSpeed in interface FlagEncodergetSpeed in class AbstractFlagEncoderCopyright © 2012–2018. All rights reserved.