sdk-maps / com.tomtom.online.sdk.map / TrafficSelectedState

TrafficSelectedState

open class TrafficSelectedState : Serializable

Keep information about the selected traffic flow.

Constructors

<init>

TrafficSelectedState()

State of selected traffic. Default constrictor needed to generate the class.

TrafficSelectedState(mapPoint: MapPoint!, selectedTrafficModel: TrafficFlowMapBalloon!)

Create container that keeps the selected traffic flow state.

TrafficSelectedState(mapPoint: MapPoint!, selectedTrafficModel: TrafficIncidentsMapBalloon!)

Create container that keeps the selected traffic incidents state.

Functions

getFlowMapBalloon

open fun getFlowMapBalloon(): TrafficFlowMapBalloon!

Returns traffic flow map balloon.

getIncidentsMapBalloon

open fun getIncidentsMapBalloon(): TrafficIncidentsMapBalloon!

Returns the selected traffic incidents model.

getSelectedTrafficPoint

open fun getSelectedTrafficPoint(): LatLng!

Returns the currently selected Traffic flow point.

getSelectedType

open fun getSelectedType(): String!

Returns the selected type of traffic.

setFlowMapBalloon

open fun setFlowMapBalloon(flowMapBalloon: TrafficFlowMapBalloon!): Unit

Sets traffic flow map balloon.

setIncidentsMapBalloon

open fun setIncidentsMapBalloon(incidentsMapBalloon: TrafficIncidentsMapBalloon!): Unit

Sets a new traffic incidents model.

setSelectedTrafficPoint

open fun setSelectedTrafficPoint(selectedTrafficPoint: LatLng!): Unit

Sets the currently selected Traffic flow point.