public class EncodingManager extends Object
Constructor and Description |
---|
EncodingManager(FlagEncoder... flagEncoders)
Instantiate manager with the given list of encoders.
|
EncodingManager(FlagEncoderFactory factory,
String flagEncodersStr,
int bytesForEdgeFlags) |
EncodingManager(List<? extends FlagEncoder> flagEncoders)
Instantiate manager with the given list of encoders.
|
EncodingManager(List<? extends FlagEncoder> flagEncoders,
int bytesForEdgeFlags) |
EncodingManager(String flagEncodersStr)
Instantiate manager with the given list of encoders.
|
EncodingManager(String flagEncodersStr,
int bytesForEdgeFlags) |
Modifier and Type | Method and Description |
---|---|
long |
acceptWay(ReaderWay way)
Determine whether a way is routable for one of the added encoders.
|
void |
applyWayTags(ReaderWay way,
EdgeIteratorState edge) |
static EncodingManager |
create(FlagEncoderFactory factory,
String ghLoc)
Create the EncodingManager from the provided GraphHopper location.
|
boolean |
equals(Object obj) |
List<FlagEncoder> |
fetchEdgeEncoders()
The returned list is never empty.
|
long |
flagsDefault(boolean forward,
boolean backward) |
int |
getBytesForFlags() |
FlagEncoder |
getEncoder(String name) |
long |
handleNodeTags(ReaderNode node)
Analyze tags on osm node.
|
long |
handleRelationTags(ReaderRelation relation,
long oldRelationFlags) |
long |
handleWayTags(ReaderWay way,
long includeWay,
long relationFlags)
Processes way properties of different kind to determine speed and direction.
|
int |
hashCode() |
boolean |
needsTurnCostsSupport() |
long |
reverseFlags(long flags)
Reverse flags, to do so all encoders are called.
|
EncodingManager |
setEnableInstructions(boolean enableInstructions) |
EncodingManager |
setPreferredLanguage(String preferredLanguage) |
boolean |
supports(String encoder) |
String |
toDetailsString() |
String |
toString() |
public EncodingManager(String flagEncodersStr)
flagEncodersStr
- comma delimited list of encoders. The order does not matter.public EncodingManager(String flagEncodersStr, int bytesForEdgeFlags)
public EncodingManager(FlagEncoderFactory factory, String flagEncodersStr, int bytesForEdgeFlags)
public EncodingManager(FlagEncoder... flagEncoders)
flagEncoders
- comma delimited list of encoders. The order does not matter.public EncodingManager(List<? extends FlagEncoder> flagEncoders)
flagEncoders
- comma delimited list of encoders. The order does not matter.public EncodingManager(List<? extends FlagEncoder> flagEncoders, int bytesForEdgeFlags)
public static EncodingManager create(FlagEncoderFactory factory, String ghLoc)
public int getBytesForFlags()
public boolean supports(String encoder)
public FlagEncoder getEncoder(String name)
public long acceptWay(ReaderWay way)
public long handleRelationTags(ReaderRelation relation, long oldRelationFlags)
public long handleWayTags(ReaderWay way, long includeWay, long relationFlags)
relationFlags
- The preprocessed relation flags is used to influence the way properties.public String toDetailsString()
public long flagsDefault(boolean forward, boolean backward)
public long reverseFlags(long flags)
public long handleNodeTags(ReaderNode node)
public EncodingManager setEnableInstructions(boolean enableInstructions)
public EncodingManager setPreferredLanguage(String preferredLanguage)
public void applyWayTags(ReaderWay way, EdgeIteratorState edge)
public List<FlagEncoder> fetchEdgeEncoders()
public boolean needsTurnCostsSupport()
Copyright © 2012–2018. All rights reserved.