A simple Node.js app using restify that interacts with the googleMaps directions API.
- Make sure that the most updated node version is installed.
- Run
npm install
. - Run
npm start
.
- Run
docker-compose up --build
.
- Get estimate duration and distance for traveling between two addresses at a give time.
- Retrieve coordinates for an address.
This service currently provides the following endpoints:
- POST to api/v1/directions with a body:
{
"origin": "string value",
"destination": "string value",
"departureTime": "time of departure in epoch"
}
- POST to api/v1/geocode with a body:
{
"address": "string value",
}
The json for swagger on this API can be found in src/swagger/api-swagger-v2.json