Skip to content

This library helps you to get a CEP or Address from brazilian's postal service.

Notifications You must be signed in to change notification settings

joao2391/DotNetCEPSearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DotNet CEP Search

Nuget Nuget

This library helps you to get a CEP or Address from brazilian's postal service.

Notes

Version 1.2.2:

  • Fix GetCepByAdress

Installation

Use the package manager to install.

Install-Package DotNetCEPSearch -Version 1.2.2

Usage

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");

Contributing

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.

License

MIT