sdk-maps / com.tomtom.online.sdk.map.traffic / BaseTrafficIncident

BaseTrafficIncident

abstract class BaseTrafficIncident : TrafficIncident

Base class for traffic incident.

Constructors

<init>

BaseTrafficIncident()

Base class for traffic incident.

Functions

getId

open fun getId(): Optional<Long!>!

Gets the id of the incident.

getIsLeftHandTraffic

open fun getIsLeftHandTraffic(): Optional<Boolean!>!

Gets the value which indicates if the road has left-hand traffic. If the tag is not present the road has right-hand traffic.

getMagnitude

open fun getMagnitude(): Optional<Int!>!

Gets the magnitude of delay associated with the incident. These values correspond to incident colors in the traffic tiles.

getRoadType

open fun getRoadType(): Optional<String!>!

Gets the tag value describing the road type.

getTrafficRoadCoverage

open fun getTrafficRoadCoverage(): Optional<String!>!

Gets the tag value that describes if the traffic is assigned to the whole road (one-way road), or only to one side (two-way road).

setId

open fun setId(id: Long): Unit

setIsLeftHandTraffic

open fun setIsLeftHandTraffic(isLeftHandTraffic: Boolean): Unit

setMagnitude

open fun setMagnitude(magnitude: Int): Unit

setRoadType

open fun setRoadType(roadType: String!): Unit

setTrafficRoadCoverage

open fun setTrafficRoadCoverage(trafficRoadCoverage: String!): Unit

Inheritors

TrafficIncidentFlow

open class TrafficIncidentFlow : BaseTrafficIncident, Serializable

Traffic incidents flow data which can be taken from a vector incident tile.

TrafficIncidentPoi

open class TrafficIncidentPoi : BaseTrafficIncident, Serializable

Traffic incidents poi (Points of Interest) data which can be taken from a vector incident tile.