TrafficScoreProvider
Subscribes to updates on the traffic jam level.
This interface is thread-safe.
Extends:
Hashable
public static func == (lhs: TrafficScoreProvider, rhs: TrafficScoreProvider) -> Bool
Returns a Boolean value indicating whether two values are equal.
public convenience init(
map: Map
)
Creates an object to track the level of traffic jams in the map visibility area.
The resulting object must be stored as long as the data needs to be updated.
Parameters
map
Map
Map for which the visibility area will be tracked.
public convenience init(
context: Context,
point: GeoPoint
)
Creates an object to track the level of traffic jams for a given location.
The resulting object must be stored for as long as the data needs to be updated.
Parameters
Methods
Properties
StatefulChannel<TrafficScore>
Current state and size of the traffic jams.
Current state and size of the traffic jams.