RxViaCep

A simple reactive android implementation to fetch information provided by ViaCep Api about brazilian postal code addresses.

View on GitHub

RxViaCep

Release

Usage

Call RxViaCep method withCep(String cep) then call subscribe (note that i’m using lambdas, but you can get the same behavior using the traditional approach which is implement an Observer<AddressResponse>.) :

 RxViaCep.withCep("12345-789")
          .subscribe(
              addressResponse -> {
                //use response to do whatever you want
              },
              err -> {
                //handle errors
              }
          );