Class Direction

java.lang.Object
com.navmii.sdk.routenavigation.Direction

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

    Constructors 
    Constructor Description
    Direction​(DirectionType type, RoadInfo roadFrom, RoadInfo roadTo, float distanceFromPreviousDirection, float roundaboutAngle, int roundaboutExitNumber, java.lang.String motorwayExitNumber)  
  • Method Summary

    Modifier and Type Method Description
    float getDistanceFromPreviousDirection()
    Distance from the previous direction in meters.
    java.lang.String getMotorwayExitNumber()
    The number or name of a motorway exit.
    RoadInfo getRoadFrom()
    Information on the road from which the direction is leading.
    RoadInfo getRoadTo()
    Information on the road to which the direction is leading.
    float getRoundaboutAngle()
    Angle in degrees between roundabout point of entry and point of exit.
    int getRoundaboutExitNumber()
    The number of a roundabout exit starting from roundabout entry.
    DirectionType getType()
    Direction type.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Direction

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

    • getType

      public DirectionType getType()
      Direction type.
    • 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