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

TrafficIncidentFlow

open class TrafficIncidentFlow : BaseTrafficIncident, Serializable

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

Constructors

<init>

TrafficIncidentFlow()

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

Functions

accept

open fun accept(visitor: TrafficIncidentVisitor!): Unit

addCoordinatesToGeometry

open fun addCoordinatesToGeometry(coordinates: LatLng!): Unit

getGeometry

open fun getGeometry(): ImmutableList<LatLng!>!

Gets the coordinates representing the geometry of the incident. Coordinates are precise enough for the current zoom level.

Inherited 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