All Projects → prodis → correios-cep-elixir

prodis / correios-cep-elixir

Licence: Apache-2.0 license
Find Brazilian addresses by postal code, directly from Correios API. No HTML parsers.

Programming Languages

elixir
2628 projects
Makefile
30231 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to correios-cep-elixir

ViaCEP
The ViaCEP API/webservice .NET client
Stars: ✭ 21 (-44.74%)
Mutual labels:  cep, correios, zipcode
Cep Promise
Busca por CEP integrado diretamente aos serviços dos Correios, ViaCEP e outros (Node.js e Browser)
Stars: ✭ 2,483 (+6434.21%)
Mutual labels:  cep, correios, zipcode
correios-java-sdk
Correios Java SDK
Stars: ✭ 28 (-26.32%)
Mutual labels:  correios, correios-cep
correios-consulta
Buscar informações de serviços dos correios diretamente nos sites deles, sem utilizar api de terceiros.
Stars: ✭ 155 (+307.89%)
Mutual labels:  correios, correios-cep
consultacep
🇧🇷 Consulta CEP é uma aplicação básica para consulta de CEP
Stars: ✭ 21 (-44.74%)
Mutual labels:  cep, zipcode
Kallewheel
A custom color wheel extension for Adobe Photoshop
Stars: ✭ 16 (-57.89%)
Mutual labels:  cep
Eagle
Real time data processing system based on flink and CEP
Stars: ✭ 95 (+150%)
Mutual labels:  cep
Brazilian Values
🇧🇷 Funções de formatação, conversão e validação para valores, documentos e outras unidades usadas no Brasil. Como CEP, CNPJ, CPF, BRL (R$), datas, números etc.
Stars: ✭ 366 (+863.16%)
Mutual labels:  cep
Serendipity
Serendipity is an open source Customer Engagement Platform
Stars: ✭ 297 (+681.58%)
Mutual labels:  cep
Rivus cep
Complex event processing in Erlang
Stars: ✭ 140 (+268.42%)
Mutual labels:  cep
Busca Cep
Módulo de node.js que busca por ceps do Brasil utilizando o serviço ViaCEP
Stars: ✭ 70 (+84.21%)
Mutual labels:  cep
Parcel Plugin Cep
Zero configuration CEP extension builder for Parcel
Stars: ✭ 29 (-23.68%)
Mutual labels:  cep
Correios Php
Uma maneira fácil de interagir com as principais funcionalidades dos Correios.
Stars: ✭ 116 (+205.26%)
Mutual labels:  cep
Esper
Esper Complex Event Processing, Streaming SQL and Event Series Analysis
Stars: ✭ 680 (+1689.47%)
Mutual labels:  cep
Pycep Correios
📦 API para busca de CEP integrado ao serviços dos Correios, ViaCEP e ApiCEP (WideNet)
Stars: ✭ 141 (+271.05%)
Mutual labels:  cep
Spreads
Series and Panels for Real-time and Exploratory Analysis of Data Streams
Stars: ✭ 353 (+828.95%)
Mutual labels:  cep
Cep Gratis
Com esse pacote você poderá realizar consultas de CEP gratuitamente.
Stars: ✭ 64 (+68.42%)
Mutual labels:  cep
Wayeb
Wayeb is a Complex Event Processing and Forecasting (CEP/F) engine written in Scala.
Stars: ✭ 138 (+263.16%)
Mutual labels:  cep
Interference
opensource distributed database with base JPA implementation and event processing support
Stars: ✭ 57 (+50%)
Mutual labels:  cep
Brazilian Utils
Utils library for specific Brazilian businesses
Stars: ✭ 1,023 (+2592.11%)
Mutual labels:  cep

Correios CEP

Hex.pm Docs Build Status Coverage Status License

Correios Logo

Find Brazilian addresses by postal code, directly from Correios API. No HTML parsers.

DEPRECATION NOTE

Correios.CEP.Address.zipcode was removed in the version 0.6.0. Use Correios.CEP.Address.postal_code instead.

Installation

The package can be installed by adding correios_cep to your list of dependencies in mix.exs:

def deps do
  [
    {:correios_cep, "~> 0.7.0"}
  ]
end

Usage

iex> Correios.CEP.find_address("54250610")
{:ok,
 %Correios.CEP.Address{
   street: "Rua Fernando Amorim",
   neighborhood: "Cavaleiro",
   complement: "",
   city: "Jaboatão dos Guararapes",
   state: "PE",
   postal_code: "54250610"
 }}

iex> Correios.CEP.find_address("00000-000")
{:error,
 %Correios.CEP.Error{
   type: :postal_code_not_found,
   message: "Postal code not found",
   reason: "CEP NAO ENCONTRADO"
 }}

iex> Correios.CEP.find_address!("54250-610")
%Correios.CEP.Address{
  street: "Rua Fernando Amorim",
  neighborhood: "Cavaleiro",
  complement: "",
  city: "Jaboatão dos Guararapes",
  state: "PE",
  postal_code: "54250610"
}

iex> Correios.CEP.find_address!("00000-000")
** (Correios.CEP.Error) Postal code not found

Options

There are some supported options that can be added to the request, as timeouts, proxy and URL configuration.

The example below shows the use of request_timeout and proxy options:

iex> Correios.CEP.find_address("54250610", request_timeout: 3000, proxy: {"localhost", 8888})
{:ok,
 %Correios.CEP.Address{
   street: "Rua Fernando Amorim",
   neighborhood: "Cavaleiro",
   complement: "",
   city: "Jaboatão dos Guararapes",
   state: "PE",
   postal_code: "54250610"
 }}

See Correios.CEP.find_address/2 documentation to check the details of the available options.

Documentation

The full documentation is available at https://hexdocs.pm/correios_cep.

Contributing

See the contributing guide.

License

Correios CEP is released under the Apache 2.0 License. See the LICENSE file.

Copyright © 2018-2020 Fernando Hamasaki de Amorim

Author

Fernando Hamasaki de Amorim (prodis)

Prodis Logo

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].