TrafficEvent class
Traffic events class
This class should not be instantiated directly. Instead, use the GemMapController.registerCursorSelectionUpdatedOverlayItemsCallback method to register a listener to obtain a list of instances.
Otherwise use the RouteBase.trafficEvents
getter to get a list of instances from a route.
- Implementers
Constructors
- TrafficEvent()
- TrafficEvent.init(int id, int mapId)
Properties
-
affectedTransportModes
→ Set<
TrafficTransportMode> -
Gets affected transport modes
no setter
- boundingBox → RectangleGeographicArea
-
Gets the bounding box of the traffic event.
no setter
- delay → int
-
Gets the estimated delay in seconds caused by the traffic event.
no setter
- description → String
-
Gets the traffic event description
no setter
- endTime → DateTime?
-
Gets end time ( UTC )
no setter
- eventClass → TrafficEventClass
-
Gets the traffic event class
no setter
- eventSeverity → TrafficEventSeverity
-
Gets the traffic event severity
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasOppositeSibling → bool
-
Checks if event has a sibling on opposite direction
no setter
- img → Img
-
Get the traffic event image
no setter
- impactZone → TrafficEventImpactZone
-
Gets the traffic event impact zone
no setter
- isRoadblock → bool
-
Checks if this traffic event is a roadblock.
no setter
- isUserRoadblock → bool
-
Return true if the traffic event is a user roadblock
no setter
- length → int
-
Gets the length in meters of the road segment affected by the traffic event.
no setter
- mapId → int
-
no setter
- pointerId → int
-
no setter
- previewUrl → String
-
Gets the traffic event preview URL
no setter
- referencePoint → Coordinates
-
Gets the traffic event reference point
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DateTime?
-
Gets start time ( UTC )
no setter
Methods
-
getImage(
{Size? size, ImageFileFormat? format}) → Uint8List? - Gets the traffic event image
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited