A simple web service getting driver duration and distance calculation from OSMR API. Make sure you have to Go version 1.14 or newer
It has three packages
- Rest package is reponsible for routing and running http server
- Service package has two services API and Route
- API service is responsible for getting data from OSRM API
- Route service is responsible getting data from api service and do some business logic and sends back to routes results to handlers
make init
make build
./bin/server -port 3000
The application has already been deployed to Heroku! Link to the application