v1.0-rc2
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.