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

TrafficScoreProvider

Subscribtion to updates of the traffic jam score.

This interface is thread-safe.

TrafficScoreProvider(map: Map)
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)

Function that creates an object for tracking the traffic score bubble for the 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.