tripkit-android / com.skedgo.tripkit.a2brouting / SingleRouteService
SingleRouteService
class SingleRouteService :
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
Name | Summary |
---|---|
<init> | 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.SingleRouteService(routeService: RouteService ) |
Functions
Name | Summary |
---|---|
routeAsync | To find routes from A to B asynchronously.fun routeAsync(query: Query , transportModeFilter: TransportModeFilter , transitModeFilter: TransitModeFilter ): Observable< List < TripGroup >> |