/calc-eta

🚕 ETA calculation service for chauffeur-on-demand app

Primary LanguageRuby

ETA calculation service

Lint and test

To run locally

docker-compose up -d --build

Now you have app running at http://localhost:9292 and ready to process your requests.

API

  • To get ETA: GET /eta

    Example:

    curl -X GET "http://localhost:9292/eta?lat=53.2159&lng=50.132277"
    

You can find interactive API documentation at http://localhost:9292/documentation:

Documentation

To run tests

docker-compose run --rm test bundle exec rspec

Also you can check this workflow runs to ensure all tests are passed.