ru.dgis.sdk.traffic.TrafficCollector | Android SDK | 2GIS Documentation

TrafficCollector

Interface for managing traffic information collection service.

This interface is thread-safe.

TrafficCollector(context: Context)

The function of creating a service for collecting information about traffic. The service for collecting information about traffic analyzes the state of traffic on the road where the user is moving and sends the results of the analysis to the server in anonymized form.

Parameters
context
Context

Context - the environment required for the SDK to work.

Returns

Service for collecting traffic information.

Properties

The function of determining the state of allowing / prohibiting sending information about transport traffic to the server.