GithubHelp home page GithubHelp logo

distance-map's Introduction

Distance Map

Steps to reproduce:

  1. Clone this repo.
  2. Install Docker and Docker Compose.
  3. Create an key following this steps in: https://developers.google.com/maps/premium/apikey/geocoding-apikey?hl=pt-br
  4. After generate an key, copy file .env.example to .env.
  5. Change the value of GOOGLE_MAPS_API_GEOCODE_KEY by generate key.
  6. Run:
   $ docker-compose up -d
  1. Call a route to POST /addresses or import 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, 22280​030",
    "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"
  ]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.