sdk-traffic / com.tomtom.online.sdk.traffic.incidents.response / TrafficIncidentCluster

TrafficIncidentCluster

open class TrafficIncidentCluster : BaseTrafficIncident

Contains details of a cluster of incidents and a list of incidents that constitute this cluster.

Constructors

<init>

TrafficIncidentCluster()

Contains details of a cluster of incidents and a list of incidents that constitute this cluster.

Functions

accept

open fun accept(visitor: TrafficIncidentVisitor!): Unit

addIncident

open fun addIncident(incident: TrafficIncident!): Unit

getBoundingBox

open fun getBoundingBox(): BoundingBox!

Gets a bounding box encompassing all incidents in this cluster.

getIncidents

open fun getIncidents(): MutableList<TrafficIncident!>

Gets a collection of incidents that constitute this cluster.

Inherited Functions

getAdjustedPosition

open fun getAdjustedPosition(): LatLng!

Returns the point where an icon of the cluster or raw incident should be drawn. This is affected by traffic style, zoom level, and road type.

getIconCategory

open fun getIconCategory(): IncidentIconCategory!

Returns the icon category associated with this incident.

getId

open fun getId(): String!

Returns the ID of the traffic incident.

getLengthMeters

open fun getLengthMeters(): Int

Returns the length of the incident in meters.

getMagnitude

open fun getMagnitude(): IncidentMagnitude!

Returns the magnitude of delay associated with this incident.

setIconCategory

open fun setIconCategory(iconCategory: Int): Unit

setMagnitude

open fun setMagnitude(magnitude: Int): Unit