- Clone this repo.
- Install Docker and Docker Compose.
- Create an key following this steps in: https://developers.google.com/maps/premium/apikey/geocoding-apikey?hl=pt-br
- After generate an key, copy file
.env.example
to.env
. - Change the value of
GOOGLE_MAPS_API_GEOCODE_KEY
by generate key. - Run:
$ docker-compose up -d
- Call a route to
POST /addresses
orimport Insomnia_distance_map.json
in root to Insomnia. This is a example of route:
POST http://localhost:3334/addresses
{
"addresses": [
"Av. Rio Branco, 1 Centro, Rio de Janeiro RJ, 20090003; Praça Mal. Âncora, 122 Centro, Rio de Janeiro RJ, 20021200",
"Rua 19 de Fevereiro, 34 Botafogo, Rio de Janeiro RJ, 22280030",
"Av. das Américas, 500 - bloco 9, sala 301 - Barra da Tijuca, Rio de Janeiro - RJ, 22640-100",
"R. São Francisco Xavier, 524 - Maracanã, Rio de Janeiro - RJ, 20550-013"
]
}