DEV Community

João Paulo de C. Lima
João Paulo de C. Lima

Posted on

2

[PT-BR]Nova Ferramenta para buscas de CEPs e Endereços

DotNet CEP Search

Está disponível no Github e no Nuget

DotNetCEPSearch é uma biblioteca, desenvolvida em .NET Standard 2.0, que auxilia na busca por CEP e Endereços no Brasil.

Como instalar?

Basta digitar o comando abaixo no seu Package Manager Console ou procurar via Nuget dentro do Visual Studio.

Install-Package DotNetCEPSearch -Version 1.0.0
Enter fullscreen mode Exit fullscreen mode

Como utilizar?

Após a instalação ser concluída, adicione o código abaixo no topo da sua classe:

using DotNet.CEP.Search.App;
Enter fullscreen mode Exit fullscreen mode

E utilize as seguintes funcionalidades:

CepSearch cep = new CepSearch();
string jsonResultAsync = await cep.GetAddressByCepAsync("numberOfCep");

string jsonResult = GetAddressByCep("numberOfCep");
Enter fullscreen mode Exit fullscreen mode

Get CEP by Address

CepSearch cep = new CepSearch();
string jsonResultAsync = await cep.GetCepByAddressAsync("address");

string jsonResult = cep.GetCepByAddress("address");
Enter fullscreen mode Exit fullscreen mode

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay