TrafficParameters class Traffic & Roadblocks

Provides additional, read-only parameters that describe a traffic event. Typical information includes estimated speed impact, expected delay, severity level, and a short descriptive label or reason for the event.

Obtain an instance via TrafficEvent.getPreviewData. The method may return null when no preview data is available for a given event.

Constructors

TrafficParameters({required String id, required int iconId, required int alertc, required int delay, required String description, required DateTime startStamp, required DateTime endStamp, required String from, required String to, required RouteTransportMode transportMode})
Creates a new TrafficParameters instance.

Properties

alertc → int
Alert-C identifier describing the type and severity of the traffic event.
final
delay → int
Delay in seconds caused by the traffic event
final
description → String
Traffic event description
final
endStamp → DateTime
End timestamp when the traffic event ends
final
from → String
The location where the traffic event starts
final
hashCode → int
The hash code for this object.
no setterinherited
iconId → int
Icon id
final
id → String
Identificator for the traffic event
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startStamp → DateTime
Start timestamp when the traffic event becomes active
final
to → String
The location where the traffic event ends
final
transportMode → RouteTransportMode
The transport mode for which the traffic event is relevant
final

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