- clone the repo
git clone https://github.com/kuyoonjo/calc-distance-matrix.git
- install dependencies
cd calc-distance-matrix
npm install
- start web server
node index.js
- POST /route: Submit start point and drop-off locations
curl -X POST -H "Content-Type: application/json" -d '[[22.372081,114.107877],[22.326442,114.167811],[22.284419,114.15951]]' "http://127.0.0.1:9000/route"
- GET /route/: Get shortest driving route
curl -X GET "http://127.0.0.1:9000/route/YOUR_TOKEN"