open class OnlineTrafficApi : TrafficApi
Main entry point for Traffic API Flow Segment Data and Traffic API Incident Details services.
static val DEFAULT_ONLINE_TRAFFIC_API_VERSION: String
Default TomTom's Traffic API service version. |
|
static val DEFAULT_ONLINE_TRAFFIC_ENDPOINT: String
Default TomTom's Traffic API endpoint. |
open static fun create(context: Context): TrafficApi! open static fun create(context: Context, apiKey: String!): TrafficApi!
Creates new TrafficApi object which will use provided Traffic API key. It uses default values for Traffic API service endpoint and api version. |
|
open fun findFlowSegmentData(query: FlowSegmentDataQuery!): Single<FlowSegmentDataResponse!>! open fun findFlowSegmentData(query: FlowSegmentDataQuery!, listener: FlowSegmentDataResultListener!): Unit |
|
open fun findIncidentDetails(query: IncidentDetailsQuery!): Single<IncidentDetailsResponse!>! open fun findIncidentDetails(query: IncidentDetailsQuery!, listener: IncidentDetailsResultListener!): Unit |
|
open fun getResultScheduler(): Scheduler |
|
open fun getWorkingScheduler(): Scheduler |