Class RoundaboutInstruction

java.lang.Object
com.graphhopper.util.Instruction
com.graphhopper.util.RoundaboutInstruction

public class RoundaboutInstruction extends Instruction
Author:
jansoe
  • Constructor Details

    • RoundaboutInstruction

      public RoundaboutInstruction(int sign, String name, PointList pl)
  • Method Details

    • increaseExitNumber

      public RoundaboutInstruction increaseExitNumber()
    • setDirOfRotation

      public RoundaboutInstruction setDirOfRotation(double deltaIn)
    • setExited

      public RoundaboutInstruction setExited()
    • isExited

      public boolean isExited()
    • getExitNumber

      public int getExitNumber()
    • setExitNumber

      public RoundaboutInstruction setExitNumber(int exitNumber)
    • getTurnAngle

      public double getTurnAngle()
      Returns:
      radian of angle -2PI < x < 2PI between roundabout entrance and exit values
      • > 0 is for clockwise rotation
      • < 0 is for counterclockwise rotation
      • NaN if direction of rotation is unclear
    • setRadian

      public RoundaboutInstruction setRadian(double radian)
      The radian value between entrance (in) and exit (out) of this roundabout.
    • getExtraInfoJSON

      public Map<String,Object> getExtraInfoJSON()
      Overrides:
      getExtraInfoJSON in class Instruction
    • getTurnDescription

      public String getTurnDescription(Translation tr)
      Overrides:
      getTurnDescription in class Instruction