RouteTrafficEvent class
Route traffic events class
Otherwise use the RouteBase.trafficEvents
getter to get a list of instances from a route.
- Inheritance
-
- Object
- TrafficEvent
- RouteTrafficEvent
Constructors
- RouteTrafficEvent.init(int id, int mapId)
Properties
-
affectedTransportModes
→ Set<
TrafficTransportMode> -
Gets affected transport modes
no setterinherited
- boundingBox → RectangleGeographicArea
-
Gets the bounding box of the traffic event.
no setterinherited
- delay → int
-
Gets the estimated delay in seconds caused by the traffic event.
no setterinherited
- description → String
-
Gets the traffic event description
no setterinherited
- distanceToDestination → int
-
Get the distance in meters from starting point on current route of the traffic event to the destination.
no setter
- endTime → DateTime?
-
Gets end time ( UTC )
no setterinherited
- eventClass → TrafficEventClass
-
Gets the traffic event class
no setterinherited
- eventSeverity → TrafficEventSeverity
-
Gets the traffic event severity
no setterinherited
- from → Coordinates
-
Get the route traffic event start point.
no setter
-
fromLandmark
→ Pair<
Landmark, bool> -
Gets the traffic event start point as landmark.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasOppositeSibling → bool
-
Checks if event has a sibling on opposite direction
no setterinherited
- img → Img
-
Get the traffic event image
no setterinherited
- impactZone → TrafficEventImpactZone
-
Gets the traffic event impact zone
no setterinherited
- isRoadblock → bool
-
Checks if this traffic event is a roadblock.
no setterinherited
- isUserRoadblock → bool
-
Return true if the traffic event is a user roadblock
no setterinherited
- length → int
-
Gets the length in meters of the road segment affected by the traffic event.
no setterinherited
- mapId → int
-
no setterinherited
- pointerId → int
-
no setterinherited
- previewUrl → String
-
Gets the traffic event preview URL
no setterinherited
- referencePoint → Coordinates
-
Gets the traffic event reference point
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DateTime?
-
Gets start time ( UTC )
no setterinherited
- to → Coordinates
-
Get the route traffic event end point.
no setter
-
toLandmark
→ Pair<
Landmark, bool> -
Gets the traffic event end point as landmark.
no setter
Methods
-
asyncUpdateToFromData(
void onCompleteCallback(GemError err)) → void - Update the local data needed for 'from' and 'to' landmarks address and description.
-
cancelUpdate(
) → void - Cancel the update request.
-
dispose(
) → void -
getImage(
{Size? size, ImageFileFormat? format}) → Uint8List? -
Gets the traffic event image
inherited
-
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