/tripkit/TripKitAndroid/com.skedgo.tripkit.a2brouting
Package-level declarations
Types
Name | Summary |
---|---|
A2bRoutingApi | interface A2bRoutingApi Calculates door-to-door trips for the specified mode(s). See more at https://skedgo.github.io/tripgo-api/#tag/Routing%2Fpaths%2F~1routing.json%2Fget. |
A2bRoutingDataModule | @Module class A2bRoutingDataModule |
FailoverA2bRoutingApi | class FailoverA2bRoutingApi(resources: Resources, gson: Gson, a2bRoutingApi: A2bRoutingApi) A wrapper of A2bRoutingApi that requests routing.json on multiple servers w/ failover. |
FillIdentifiers | class FillIdentifiers : Function<T, R> Fills id for Trip. |
GetNonTravelledLineForTrip | class GetNonTravelledLineForTrip@Injectconstructor |
GetTravelledLineForTrip | class GetTravelledLineForTrip@Injectconstructor |
RouteService | interface RouteService |
SelectBestDisplayTrip | class SelectBestDisplayTrip : Function<T, R> Selects display trip which has lowest weighted score. |
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. |
ToWeightingProfileString | object ToWeightingProfileString |
Functions
Name | Summary |
---|---|
toProfileWeight | fun Int.toProfileWeight(): Float Weight values are stored in app as a value in range 0 - 100. The server expects weights between 0.1 and 2.0. So we convert them. |