The specification is described in the file specification.rst.
You must have poetry installed to run the project.
Execute:
$ poetry install
$ poetry shell
Execute:
$ make run
Then, visit the URL http://localhost:5000/docs
to test the project.
Important
The location of the store is (lat: 0.0, long: 0.0). There is no way to change that currently.
Tip
You can load a
csv
file containing the coordinates for the destinations. For example:time,lat,long 2022-06-29 10:15:40.576367,0.04,0.02 2022-06-29 10:15:41.576367,0.01,0.02 2022-06-29 10:15:42.576367,0.02,0.02
The
username
andpassword
are fixed inconfig.py
. Their currently values aredrone
and1234
respectively.The endpoint
/drone/next_destination
requires authentication, but not the others.Also,
/drone/next_destination
simulates the expected drone behavior, i.e., the drone moves to the next destination and the destination is removed from the list. If there is no more destinations available or the drone's remaining range is insuficient for the next delivery, it returns to the store (0.0, 0.0).The drone's remaining range is fixed in
5
in filejbt_drone/drone.py
and cannot be changed in runtime in the current version.
Execute:
$ make test