forg1v3n / tsa-test

1 stars 0 forks source link

Adding functionality #1

Open brunoaugustosilva opened 4 years ago

brunoaugustosilva commented 4 years ago

There is an API about Brazilian CEPs the ViaCEP. You should to use this API instead of typing address.

Example

CEP 01001-000

//viacep.com.br/ws/01001000/json/?callback=callback_name

callback_name({
    "cep": "01001-000",
    "logradouro": "Praça da Sé",
    "complemento": "lado ímpar",
    "bairro": "Sé",
    "localidade": "São Paulo",
    "uf": "SP",
    "unidade": "",
    "ibge": "3550308",
    "gia": "1004"
});
forg1v3n commented 4 years ago

Valeu pela dica, Bruno!