Class Instructions

java.lang.Object
com.graphhopper.util.Instructions

public class Instructions extends Object
  • 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 query
      maxDistance - the maximum acceptable distance to the instruction (in meter)
      Returns:
      the next Instruction or null if too far away.