Package com.graphhopper.routing
Class InstructionsFromEdges
java.lang.Object
com.graphhopper.routing.InstructionsFromEdges
- All Implemented Interfaces:
Path.EdgeVisitor
This class calculates instructions from the edges in a Path.
- Author:
- Peter Karich, Robin Boldt, jan soe
-
Constructor Summary
ConstructorDescriptionInstructionsFromEdges
(Graph graph, Weighting weighting, EncodedValueLookup evLookup, InstructionList ways) -
Method Summary
Modifier and TypeMethodDescriptionstatic InstructionList
calcInstructions
(Path path, Graph graph, Weighting weighting, EncodedValueLookup evLookup, Translation tr) void
finish()
void
next
(EdgeIteratorState edge, int index, int prevEdgeId)
-
Constructor Details
-
InstructionsFromEdges
public InstructionsFromEdges(Graph graph, Weighting weighting, EncodedValueLookup evLookup, InstructionList ways)
-
-
Method Details
-
calcInstructions
public static InstructionList calcInstructions(Path path, Graph graph, Weighting weighting, EncodedValueLookup evLookup, Translation tr) - Returns:
- the list of instructions for this path.
-
next
- Specified by:
next
in interfacePath.EdgeVisitor
-
finish
public void finish()- Specified by:
finish
in interfacePath.EdgeVisitor
-