Package com.tomtom.sdk.maps.display.traffic

Types

Link copied to clipboard
data class CommunityAttributes(    val probabilityOfOccurrence: ProbabilityOfOccurrence?,     val numberOfReports: Int?,     val lastReportTime: Date?)

Describes data associated with the TrafficIncident that comes from users.

Link copied to clipboard
data class Description(val iconCategory: IconCategory, val cause: String)

Description of the TrafficIncident with a corresponding iconCategory and cause.

Link copied to clipboard
enum IconCategory : Enum<IconCategory>

The icon categories associated with the TrafficIncident.

Link copied to clipboard
enum Magnitude : Enum<Magnitude>

The magnitude of delay associated with the TrafficIncident.

Link copied to clipboard
fun interface OnTrafficIncidentClickListener

Used to notify a user about traffic incidents on the map.

Link copied to clipboard
enum PoiType : Enum<PoiType>

Possible type of the TrafficIncidentPoi.

Link copied to clipboard
enum ProbabilityOfOccurrence : Enum<ProbabilityOfOccurrence>

Possible level of the likelihood of the occurring TrafficIncident.

Link copied to clipboard
enum RoadCoverage : Enum<RoadCoverage>

Possible traffic coverage.

Link copied to clipboard
enum RoadType : Enum<RoadType>

Possible road type.

Link copied to clipboard
interface TrafficController

Controls traffic-related operations on the map.

Link copied to clipboard
interface TrafficIncident

Generic interface that describes protobuf layers called "Traffic incidents flow" and "Traffic incidents POI".

Link copied to clipboard
data class TrafficIncidentFlow(    val descriptions: List<Description>,     val delay: Duration,     val roadType: RoadType?,     val leftHandTraffic: Boolean?,     val magnitude: Magnitude?,     val roadCoverage: RoadCoverage?,     val clustered: Int?,     val endDate: Date?,     val id: String?,     val communityAttributes: CommunityAttributes) : TrafficIncident

Describes the traffic incident flow.

Link copied to clipboard
data class TrafficIncidentPoi(    val descriptions: List<Description>,     val delay: Duration,     val roadType: RoadType?,     val leftHandTraffic: Boolean?,     val magnitude: Magnitude?,     val roadCoverage: RoadCoverage?,     val poiType: PoiType,     val clusterId: Int?,     val clusterSize: Int?,     val clustered: Int?,     val endDate: Date?,     val id: String?,     val communityAttributes: CommunityAttributes) : TrafficIncident

Describes the traffic incident poi.