Package com.navmii.sdk.routenavigation
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()
-
Constructor Details
-
Direction
public Direction(DirectionType type, RoadInfo roadFrom, RoadInfo roadTo, float distanceFromPreviousDirection, float roundaboutAngle, int roundaboutExitNumber, java.lang.String motorwayExitNumber)
-
-
Method Details
-
getType
Direction type. -
getRoadFrom
Information on the road from which the direction is leading. -
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 classjava.lang.Object
-