TrafficOptimizationMode enum
Traffic optimization mode that defines whether and what kind of traffic information should be considered during route calculation.
Values
- timeDependent → const TrafficOptimizationMode
-
Traffic optimization is enabled, the shape of the route will be adjusted according to the traffic situation that depends on the RouteOptions.departureTime or RouteOptions.arrivalTime. As a result, streets with heavy traffic will be avoided whenever possible. Note that this mode enables traffic-aware routing.
- longTermClosuresOnly → const TrafficOptimizationMode
-
Only long-term road closures are taken into account. Both RouteOptions.departureTime and RouteOptions.arrivalTime are ignored, and the route will be shaped disregarding all the available current and historical traffic information, except long-term road closures. Note that this mode disables traffic-aware routing regardless of other settings.
- disabled → const TrafficOptimizationMode
-
Traffic optimization is completely disabled, including long-term road closures. Both RouteOptions.departureTime and RouteOptions.arrivalTime are ignored, and the route will be shaped disregarding all the available current and historical traffic information. Note that seasonal closures are not excluded. To exclude seasonal closures, use RoadFeatures.seasonalClosure. Note that this mode disables traffic-aware routing regardless of other settings.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
TrafficOptimizationMode> - A constant List of the values in this enum, in order of their declaration.