sdk-traffic / com.tomtom.online.sdk.traffic / TrafficApi

TrafficApi

interface TrafficApi : FlowSegmentDataApi, IncidentDetailsApi, RxContext

Defines Traffic API main object.

Properties

DEFAULT_ONLINE_TRAFFIC_API_VERSION

static val DEFAULT_ONLINE_TRAFFIC_API_VERSION: String

Default TomTom's Traffic API service version.

DEFAULT_ONLINE_TRAFFIC_ENDPOINT

static val DEFAULT_ONLINE_TRAFFIC_ENDPOINT: String

Default TomTom's Traffic API endpoint.

Inherited Functions

findFlowSegmentData

abstract fun findFlowSegmentData(query: FlowSegmentDataQuery!): Single<FlowSegmentDataResponse!>!

Performs reactive search action based on provided FlowSegmentDataQuery object and returns the result to Observers subscribed to returned Observable.

abstract fun findFlowSegmentData(query: FlowSegmentDataQuery!, listener: FlowSegmentDataResultListener!): Unit

Performs search action based on provided FlowSegmentDataQuery object and returns the result with usage of FlowSegmentDataResultListener implementation.

findIncidentDetails

abstract fun findIncidentDetails(query: IncidentDetailsQuery!): Single<IncidentDetailsResponse!>!

Performs reactive search action based on provided IncidentDetailsQuery object and returns the result to Observers subscribed to returned Observable.

abstract fun findIncidentDetails(query: IncidentDetailsQuery!, listener: IncidentDetailsResultListener!): Unit

Performs search action based on provided IncidentDetailsQuery object and returns the result with usage of IncidentDetailsResultListener implementation.

Inheritors

OnlineTrafficApi

open class OnlineTrafficApi : TrafficApi

Main entry point for Traffic API Flow Segment Data and Traffic API Incident Details services.