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

TrafficScoreProvider

Subscribe to traffic updates.

This interface is thread-safe.

TrafficScoreProvider(map: Map)

A function for creating an object for tracking the amount of traffic jams in the map visibility area.

Parameters
map
Map

the map for which the area of visibility will be tracked.

Returns

an object for tracking the amount of traffic jams.

The resulting object must be stored all the time the data needs to be updated.

TrafficScoreProvider(context: Context, point: GeoPoint)

A function to create an object to monitor the amount of traffic jams for a given location.

Parameters
context
Context

Context - the environment required for the SDK to work.

point
GeoPoint

Geopoint which you need to get the amount of traffic jams for.

Returns

An object for tracking the amount of traffic jams.

The resulting object must be stored all the time the data needs to be updated.

Properties

Current status and amount of traffic jams.

Current status and amount of traffic jams.