This library helps you to get a CEP or Address from brazilian's postal service.
Version 1.2.2:
- Fix GetCepByAdress
Use the package manager to install.
Install-Package DotNetCEPSearch -Version 1.2.2
After install:
using DotNet.CEP.Search.App;
Get Addres by CEP
CepSearch cep = new CepSearch();
// Returns an object's array with
//Rua, Bairro, Cidade, Cep, Uf
var addressAsync = await cep.GetAddressByCepAsync("CEP");
var address = GetAddressByCep("CEP");
Get CEP by Address
CepSearch cep = new CepSearch();
// Returns an object's array with
//Rua, Bairro, Cidade, Cep, Uf
var cepAsync = await cep.GetCepByAddressAsync("address");
var cep = cep.GetCepByAddress("address");
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.