TrafficCollector | iOS SDK | 2GIS Documentation

TrafficCollector

Interface for managing the traffic data 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
)

The function of creating a traffic information collection service. The service analyzes the state of traffic on the road on which the user is moving 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 to determine the status of allowing/forbidding the sending of traffic information to the server.