TrafficScoreProvider | iOS SDK | Urbi Documentation
iOS SDK

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.
This documentation comment was inherited from .

public convenience init(
    map: Map
)
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
context
Context

Context - the environment required to run the SDK.

point
GeoPoint

Geo-point for which you want to get the size of the traffic jams.

Methods
Properties
StatefulChannel<TrafficScore>

Current state and size of the traffic jams.

Current state and size of the traffic jams.