Class Direction


  • public final class Direction
    extends java.lang.Object
    Record describing a direction on route.
    • Constructor Detail

      • Direction

        public Direction​(DirectionType type,
                         RoadInfo roadFrom,
                         RoadInfo roadTo,
                         float distanceFromPreviousDirection,
                         float roundaboutAngle,
                         int roundaboutExitNumber,
                         java.lang.String motorwayExitNumber)
    • Method Detail

      • getRoadFrom

        public RoadInfo getRoadFrom()
        Information on the road from which the direction is leading.
      • getRoadTo

        public RoadInfo getRoadTo()
        Information on the road to which the direction is leading.
      • getDistanceFromPreviousDirection

        public float getDistanceFromPreviousDirection()
        Distance from the previous direction in meters.
      • getRoundaboutAngle

        public float getRoundaboutAngle()
        Angle in degrees between roundabout point of entry and point of exit.
      • getRoundaboutExitNumber

        public int getRoundaboutExitNumber()
        The number of a roundabout exit starting from roundabout entry.
      • getMotorwayExitNumber

        public java.lang.String getMotorwayExitNumber()
        The number or name of a motorway exit.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object