-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class RouteUpdateContext implements Parcelable
This struct provides route update context
-
-
Field Summary
Fields Modifier and Type Field Description private final Route
route
private final List<AlongRouteTrafficIncidentInfo>
blockingIncidents
private final List<AlongRouteTrafficFlowSegment>
blockingFlows
private final List<TimedRestrictionEdge>
timedRestrictionEdges
private final InsufficientBatteryLevelInfo
batteryInsufficientInfo
private final Integer
savedTime
-
Constructor Summary
Constructors Constructor Description RouteUpdateContext(Route route, List<AlongRouteTrafficIncidentInfo> blockingIncidents, List<AlongRouteTrafficFlowSegment> blockingFlows, List<TimedRestrictionEdge> timedRestrictionEdges, InsufficientBatteryLevelInfo batteryInsufficientInfo, Integer savedTime)
-
Method Summary
Modifier and Type Method Description final Route
getRoute()
Route that navigation session is monitoring This is the route based on which route update context is established final List<AlongRouteTrafficIncidentInfo>
getBlockingIncidents()
Blocking traffic incidents along the current route. final List<AlongRouteTrafficFlowSegment>
getBlockingFlows()
Blocking traffic flows along the monitoring route. final List<TimedRestrictionEdge>
getTimedRestrictionEdges()
Information of edges affected by the first encountered timed restriction. final InsufficientBatteryLevelInfo
getBatteryInsufficientInfo()
Battery insufficient info InsufficientBatteryLevelInfo It is ONLY for electric vehicles. final Integer
getSavedTime()
Saved time compared between current route and better route in unit of seconds. -
-
Constructor Detail
-
RouteUpdateContext
RouteUpdateContext(Route route, List<AlongRouteTrafficIncidentInfo> blockingIncidents, List<AlongRouteTrafficFlowSegment> blockingFlows, List<TimedRestrictionEdge> timedRestrictionEdges, InsufficientBatteryLevelInfo batteryInsufficientInfo, Integer savedTime)
-
-
Method Detail
-
getRoute
final Route getRoute()
Route that navigation session is monitoring This is the route based on which route update context is established
-
getBlockingIncidents
final List<AlongRouteTrafficIncidentInfo> getBlockingIncidents()
Blocking traffic incidents along the current route. See AlongRouteTrafficIncidentInfo
-
getBlockingFlows
final List<AlongRouteTrafficFlowSegment> getBlockingFlows()
Blocking traffic flows along the monitoring route. See AlongRouteTrafficFlowSegment
-
getTimedRestrictionEdges
final List<TimedRestrictionEdge> getTimedRestrictionEdges()
Information of edges affected by the first encountered timed restriction. Timed restriction detection will be performed every two minutes internally. Timed restriction detection will only check the range ahead current vehicle position along the route for configured distance. ONLY the first encountered timed restriction will be notified. If there're several timed restrictions within the detection range, following restrictions will be ignored.
-
getBatteryInsufficientInfo
final InsufficientBatteryLevelInfo getBatteryInsufficientInfo()
Battery insufficient info InsufficientBatteryLevelInfo It is ONLY for electric vehicles.
-
getSavedTime
final Integer getSavedTime()
Saved time compared between current route and better route in unit of seconds.
-
-
-
-