Package com.graphhopper.util
Class Instructions
java.lang.Object
com.graphhopper.util.Instructions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Instruction
find
(InstructionList instructions, double lat, double lon, double maxDistance) This method is useful for navigation devices to find the next instruction for the specified coordinate (e.g.
-
Constructor Details
-
Instructions
public Instructions()
-
-
Method Details
-
find
public static Instruction find(InstructionList instructions, double lat, double lon, double maxDistance) This method is useful for navigation devices to find the next instruction for the specified coordinate (e.g. the current position).- Parameters:
instructions
- the instructions to querymaxDistance
- the maximum acceptable distance to the instruction (in meter)- Returns:
- the next Instruction or null if too far away.
-