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

TrafficScoreProvider

Subscribtion to updates of the traffic jam score.

This interface is thread-safe.

TrafficScoreProvider(map: Map)

Function for creating an object for tracking the traffic jam score in the map visibility area.

Parameters
map
Map

Map for which the area of visibility is tracked.

Returns

Object for tracking the traffic jam score.

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

TrafficScoreProvider(context: Context, point: GeoPoint)

Аunction to create an object to monitor the traffic jam score for a given location.

Parameters
context
Context

Context - the environment required for the SDK to work.

point
GeoPoint

Geopoint for which you need to get the traffic jam score.

Returns

Object for tracking the traffic jam score.

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

Properties

Current status and value of traffic jam score.

Current status and value of traffic jam score.