sdk-maps / com.tomtom.online.sdk.map / TrafficFlowBalloonViewAdapter / Default

Default

open class Default : TrafficFlowBalloonViewAdapter

Default implementation of traffic view balloon adapter.

Constructors

<init>

Default()

Default implementation of traffic view balloon adapter.

Functions

findBestTrafficFlow

open fun findBestTrafficFlow(trafficFlowMapBalloon: TrafficFlowMapBalloon): Optional<TrafficFlow!>!

getLayout

open fun getLayout(mapPoint: MapPoint, balloon: TrafficFlowMapBalloon): Int

Layout which will be used to inflate balloon model.

getRoadType

open fun getRoadType(context: Context, trafficFlow: TrafficFlow): String!

Generate string representation the tag value describes the road type.

getSpecialRoadInfo

open fun getSpecialRoadInfo(context: Context, trafficFlow: TrafficFlow): String!

Generate string to describe the tag presence indicates the existence of one of the following: bridge, tunnel, skyway, ferry by boat (ferry), ferry by rail (rail). If the tag is not present, then the road is a regular road.

getTollRoadType

open fun getTollRoadType(context: Context, trafficFlow: TrafficFlow): String

Generate string to describe the type of toll road related with traffic.

getTrafficCoverageInfo

open fun getTrafficCoverageInfo(context: Context, trafficFlow: TrafficFlow): Spanned

Generate string representation the tag value which describes the traffic road coverage.

getTrafficLevel

open fun getTrafficLevel(trafficFlow: TrafficFlow): String

Generate string to describe the level of traffic.

onBindView

open fun onBindView(view: View, mapPoint: MapPoint, balloonModel: TrafficFlowMapBalloon): Unit

Inherited Functions

onCreateView

open fun onCreateView(container: ViewGroup, mapPoint: MapPoint, balloonModel: TrafficFlowMapBalloon): View!