public class MotorcycleFlagEncoder extends CarFlagEncoder
badSurfaceSpeed, badSurfaceSpeedMap, defaultSpeedMap, trackTypeSpeedMap
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
Constructor and Description |
---|
MotorcycleFlagEncoder() |
MotorcycleFlagEncoder(int speedBits,
double speedFactor,
int maxTurnCosts) |
MotorcycleFlagEncoder(PMap properties) |
Modifier and Type | Method and Description |
---|---|
void |
applyWayTags(ReaderWay way,
EdgeIteratorState edge)
Second parsing step.
|
protected double |
correctErrors(double bendiness)
A really small bendiness or a bendiness greater than 1 indicates an error in the calculation.
|
void |
createEncodedValues(List<EncodedValue> registerNewEncodedValue,
String prefix,
int index)
Define the place of the speedBits in the edge flags for car.
|
protected double |
discriminateSlowStreets(double bendiness,
double speed)
Streets that slow are not fun and probably in a town.
|
EncodingManager.Access |
getAccess(ReaderWay way)
Decide whether a way is routable for a given mode of travel.
|
int |
getVersion() |
IntsRef |
handleWayTags(IntsRef edgeFlags,
ReaderWay way,
EncodingManager.Access accept)
Analyze properties of a way and create the edge flags.
|
protected double |
increaseBendinessImpact(double bendiness)
A good bendiness should become a greater impact.
|
boolean |
supports(Class<?> feature)
Returns true if the feature class is supported like TurnWeighting or PriorityWeighting.
|
String |
toString() |
applyBadSurfaceSpeed, getSpeed, getTransportationMode, isBackwardOneway, isForwardOneway, isOneway, setSpeedTwoDirections
applyMaxSpeed, 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, supportsTurnCosts
public MotorcycleFlagEncoder()
public MotorcycleFlagEncoder(PMap properties)
public MotorcycleFlagEncoder(int speedBits, double speedFactor, int maxTurnCosts)
public int getVersion()
getVersion
in interface FlagEncoder
getVersion
in class CarFlagEncoder
public void createEncodedValues(List<EncodedValue> registerNewEncodedValue, String prefix, int index)
createEncodedValues
in class CarFlagEncoder
public EncodingManager.Access getAccess(ReaderWay way)
AbstractFlagEncoder
getAccess
in class CarFlagEncoder
public IntsRef handleWayTags(IntsRef edgeFlags, ReaderWay way, EncodingManager.Access accept)
AbstractFlagEncoder
handleWayTags
in class CarFlagEncoder
public void applyWayTags(ReaderWay way, EdgeIteratorState edge)
AbstractFlagEncoder
applyWayTags
in class AbstractFlagEncoder
protected double discriminateSlowStreets(double bendiness, double speed)
protected double correctErrors(double bendiness)
protected double increaseBendinessImpact(double bendiness)
public boolean supports(Class<?> feature)
FlagEncoder
supports
in interface FlagEncoder
supports
in class AbstractFlagEncoder
public String toString()
toString
in class CarFlagEncoder
Copyright © 2012–2020. All rights reserved.