TrafficScoreProvider | iOS SDK | Urbi Documentation
iOS SDK

TrafficScoreProvider

Subscribe for traffic jam score updates.

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
)

Function to create an object to track the traffic jam score in the map visibility area.

Parameters
map
Map

Map for which the visibility area will be tracked.

public convenience init(
    context: Context,
    point: GeoPoint
)

Function to create an object to track the traffic jam score for a given location.

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>

The current state and size of the traffic jams.

The current state and size of the traffic jams.