Skip to content

Releases: skedgo/tripkit-android

v1.0-rc2

25 Jan 09:36
Compare
Choose a tag to compare

RegionService now provides fetchParatransitByRegionAsync() to fetch paratransit info for a region.

Usage

regionService.fetchParatransitByRegionAsync(region)
    .observeOn(AndroidSchedulers.mainThread())
    .subscribe(new Action1<Paratransit>() {
      @Override public void call(Paratransit paratransit) {
        // TODO: Do something with paratransit.
      }
    }, new Action1<Throwable>() {
      @Override public void call(Throwable error) {
        // TODO: Handle error.
      }
    });

See CitiesActivity in the sample project for further usages.