TrafficScoreProvider | iOS SDK | 2GIS Documentation
iOS SDK

TrafficScoreProvider

Subscription for updates on the value of traffic jams.

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 for creating an object for tracking the value of traffic jams 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 for creating an object to track the value of traffic jams 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.