Skip to content

v1.0-rc2

Compare
Choose a tag to compare
@thuytrinh thuytrinh released this 25 Jan 09:36
· 1079 commits to develop since this release

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.