ru.dgis.sdk.traffic.TrafficScoreProvider | Android SDK | Urbi Documentation

TrafficScoreProvider

Subscribe to traffic updates.

This interface is thread-safe.

TrafficScoreProvider(map: Map)

A function for creating an object for tracking the traffic score in the map visibility area.

Parameters
map
Map

The map for which the area of visibility is tracked.

Returns

An object for tracking the traffic score.

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 traffic 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 score.

Returns

An object for tracking the traffic score.

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 value of traffic score.