-
Get Google Api Key and set value in envs.py
-
Install requirements
pip3 install -r requirements.txt
- Run app
python3 app.py
- API will be available
localhost:8080
/predict
Predicts the time from the factory to the customer.
Input parameters:
address
(string) --- customer addressvolume
(float) --- order volume (m3)date
(string) --- date and time of delivery
Output: list of predicted datetimes
Example request:
curl localhost:8080/predict?&address=Yonge-Dundas%20Square%2C%20Dundas%20Street%20East%2C%20Торонто%2C%20Онтарио%2C%20Канада&volume=10&date=2021-09-26T13%3A30%3A42.933Z