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

TrafficIncidentPoi

open class TrafficIncidentPoi : BaseTrafficIncident, Serializable

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

Constructors

<init>

TrafficIncidentPoi()

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

Properties

clusterId

var clusterId: Optional<Int!>!

coordinates

var coordinates: Optional<LatLng!>!

delay

var delay: Optional<Int!>!

description

var description: Optional<String!>!

heading

var heading: Optional<Double!>!

iconCategory

var iconCategory: Optional<Int!>!

iconName

var iconName: Optional<String!>!

poiType

var poiType: Optional<String!>!

Functions

accept

open fun accept(visitor: TrafficIncidentVisitor!): Unit

getClusterId

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

Gets the Id of the parent cluster if the incident is clustered.

getCoordinates

open fun getCoordinates(): Optional<LatLng!>!

Gets the point representing the position of the POI (Points of Interest). Coordinates are precise enough for the current zoom level.

getDelay

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

Gets the delay caused by the incident in seconds (except in road closures).

getDescription

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

Gets the description of the incident.

getHeading

open fun getHeading(): Optional<Double!>!

Gets the direction of the traffic incident.

getIconCategory

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

Gets the icon category associated with this incident.

getIconName

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

Gets the icon name associated with this incident.

getPoiType

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

Gets the poi type. The beginning of incidents is described as StartPoi. The ending of incidents is described as EndPoi. If the traffic incident has no geometry, it is described as StandalonePoi.

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