/tripkit/TripKitAndroid/com.skedgo.tripkit.a2brouting/SingleRouteService

SingleRouteService

\ class SingleRouteService(routeService: RouteService) : RouteService

A decorator of RouteService that performs only one routing request. For example, if we ask it to route from A to B, and while that request is still progress and later we ask it to route from C to B, then the request A-to-B will be cancelled. Cancellation is invoked asynchronously. That means the execution of the request C-to-D doesn't have to wait for the cancellation of the request A-to-B to be done to get started.

Constructors

SingleRouteService constructor(routeService: RouteService)

Functions

Name Summary
routeAsync open override fun routeAsync(query: Query, transportModeFilter: TransportModeFilter): Observable<List<TripGroup>>
To find routes from A to B asynchronously.