TrafficCollector | iOS SDK | 2GIS Documentation

TrafficCollector

Interface for managing the traffic information collection service.

Extends: Hashable
public static func == (lhs: TrafficCollector, rhs: TrafficCollector) -> Bool

Returns a Boolean value indicating whether two values are equal.

public convenience init(
    context: Context
)

Function for creating the traffic information collection service. The traffic information collection service analyzes the state of traffic on the road on which the user is traveling and sends the results of the analysis in an anonymized form to the server.

Parameters
context
Context

context - the environment required to run the SDK.

Methods
Properties

Function for determining the state of allowing/denying the sending of traffic information to the server.