tripkit-android / com.skedgo.tripkit.a2brouting / FailoverA2bRoutingApi

FailoverA2bRoutingApi

open class FailoverA2bRoutingApi

A wrapper of `[A2bRoutingApi](../-a2b-routing-api/index.md) that requestsrouting.json` on multiple servers w/ failover.

Constructors

Name Summary
<init> FailoverA2bRoutingApi(resources: Resources!, gson: Gson!, a2bRoutingApi:A2bRoutingApi!)

Functions

Name Summary
fetchRoutesAsync Fetches routes on multiple base urls serially. If it fails on one url, it'll failover on next url.open fun fetchRoutesAsync(baseUrls:MutableList<String!>!, modes:MutableList<String!>!, excludedTransitModes:MutableList<String!>!, excludeStops:MutableList<String!>!, options:MutableMap<String!,Any!>!): Observable<MutableList<TripGroup!>!>!