SlowTrafficNotification

Represents a notification for slow traffic conditions on a specific route leg.

This notification is generated when slow traffic is detected along a portion of the route, providing details about the affected geometry range, delay, and distance.

Parameters

legIndex

the index of the route leg where slow traffic is detected

slowTrafficGeometryRange

the range of geometry indices affected by slow traffic

freeFlowRangeDuration

the duration it would take to traverse the affected range under free-flow conditions

slowTrafficRangeDuration

the duration it takes to traverse the affected range under current slow traffic conditions

slowTrafficRangeDistance

the distance of the affected range in meters

See also

for the base class of all driver notifications

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Calculates the delay caused by slow traffic. The delay is determined by subtracting the free-flow duration from the slow traffic duration.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this SlowTrafficNotification instance with another object for equality.

Link copied to clipboard
open override fun hashCode(): Int

Generates a hash code for the SlowTrafficNotification instance.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the SlowTrafficNotification instance.