This program, calculates a distance matrix using the Janson-Shanon algorithm, bringing the result of the distance or the travel time between two locations. To use, it is very simple, just send a file formatted correctly with the extension .csv on the client as soon as the file is processed, the server returns it on screen.
- Frontend
- Backend
You'll need Node.js installed on your computer in order to build this app.
git clone https://github.com/lucioerlan/calculate-distance-matrix.git
$ cd calculate-distance-matrix/client -and- calculate-distance-matrix/server
$ npm install
Considerations:
- Format the .csv file correctly, example of the .csv file formatted in /server
- This program was run on Linux/Windows 😄
$ cp .env-examples .env
- After obtaining a google maps key, place it in [.env] in the GOOGLE_MAPS_API_KEY variable.
- Access swagger http://localhost:5000/api/docs 🥇
- $ npm test
$ /client npm start
$ /server npm start
$ docker-compose up -d
This project lives under MIT License. See LICENSE for more details. © - Erlan Lucio