-
- All Implemented Interfaces:
public final class StepInfoContainer of a data for a current navigation step.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classStepInfo.Companion
-
Field Summary
Fields Modifier and Type Field Description private final SpeedInfospeedInfoprivate final IntegercurrentLegIndexprivate final IntegercurrentStepIndexprivate final IntegerturnActionprivate final DoubledistanceToTurnprivate final DoublemaneuverLengthprivate final BooleanisHighwayExitprivate final StringrouteID
-
Constructor Summary
Constructors Constructor Description StepInfo(SpeedInfo speedInfo, Integer currentLegIndex, Integer currentStepIndex, Integer turnAction, Double distanceToTurn, Double maneuverLength, Boolean isHighwayExit, String routeID)StepInfo(SpeedInfo speedInfo, Integer currentLegIndex, Integer currentStepIndex, Integer turnAction, Double distanceToTurn, Double maneuverLength, Boolean isHighwayExit)StepInfo(SpeedInfo speedInfo, Integer currentLegIndex, Integer currentStepIndex, Integer turnAction, Double distanceToTurn, Double maneuverLength)StepInfo(SpeedInfo speedInfo, Integer currentLegIndex, Integer currentStepIndex, Integer turnAction, Double distanceToTurn)StepInfo(SpeedInfo speedInfo, Integer currentLegIndex, Integer currentStepIndex, Integer turnAction)StepInfo(SpeedInfo speedInfo, Integer currentLegIndex, Integer currentStepIndex)StepInfo(SpeedInfo speedInfo, Integer currentLegIndex)StepInfo(SpeedInfo speedInfo)StepInfo()
-
Method Summary
Modifier and Type Method Description final SpeedInfogetSpeedInfo()Current speed info of a vehicle final IntegergetCurrentLegIndex()Index of a current leg. final IntegergetCurrentStepIndex()Index of a step in the current leg. final IntegergetTurnAction()Guidance action for the next maneuver. final DoublegetDistanceToTurn()Distance from the current CVP position to the point of the maneuver final DoublegetManeuverLength()Step length - the distance from one maneuver to another final BooleanisHighwayExit()Flag indicating that the next maneuver is an exit from the highway final StringgetRouteID()String ID of a current route -
-
Constructor Detail
-
StepInfo
StepInfo(SpeedInfo speedInfo, Integer currentLegIndex, Integer currentStepIndex, Integer turnAction, Double distanceToTurn, Double maneuverLength, Boolean isHighwayExit, String routeID)
-
StepInfo
StepInfo(SpeedInfo speedInfo, Integer currentLegIndex, Integer currentStepIndex, Integer turnAction, Double distanceToTurn, Double maneuverLength, Boolean isHighwayExit)
-
StepInfo
StepInfo(SpeedInfo speedInfo, Integer currentLegIndex, Integer currentStepIndex, Integer turnAction, Double distanceToTurn, Double maneuverLength)
-
StepInfo
StepInfo(SpeedInfo speedInfo, Integer currentLegIndex, Integer currentStepIndex, Integer turnAction, Double distanceToTurn)
-
StepInfo
StepInfo(SpeedInfo speedInfo, Integer currentLegIndex, Integer currentStepIndex, Integer turnAction)
-
StepInfo
StepInfo(SpeedInfo speedInfo)
-
StepInfo
StepInfo()
-
-
Method Detail
-
getSpeedInfo
final SpeedInfo getSpeedInfo()
Current speed info of a vehicle
-
getCurrentLegIndex
final Integer getCurrentLegIndex()
Index of a current leg. Leg is the set of steps between two waypoints. If the route consists with only one destination, then the route will have only one leg. In this case index will be 0.
-
getCurrentStepIndex
final Integer getCurrentStepIndex()
Index of a step in the current leg. Step is a sub-route from the CVP up to the next turn or maneuver.
-
getTurnAction
final Integer getTurnAction()
Guidance action for the next maneuver.
-
getDistanceToTurn
final Double getDistanceToTurn()
Distance from the current CVP position to the point of the maneuver
-
getManeuverLength
final Double getManeuverLength()
Step length - the distance from one maneuver to another
-
isHighwayExit
final Boolean isHighwayExit()
Flag indicating that the next maneuver is an exit from the highway
-
getRouteID
final String getRouteID()
String ID of a current route
-
-
-
-