Version python 3
pip install -r requirements.txt
From your terminal
cd api
python main.py
2 end_points
The main endpoint, which will call all the travel APIs and bring them together thanks to the TravelMyWay magic From your browser launch the URL : http://127.0.0.1:5000/journey?from=48.85,2.35&to=52.517,13.388&start=2019-11-28T10:30:00.000Z.
The format has to be from = latitude,longitude (of the departure point) to = latitude,longitude (of the arrival point) start = date (departure date) format has to be YYYY-MM-DDTHH:MM:ss.mmmZ (view example)
The response shall be a json containing all the informations regarding the journeys computed by TravelMyWay
Please note that the response time might be a bit long (typically up to 10 s)
Returns a pre-computed json, allways the same and with no delay. From your browser launch the URL : http://127.0.0.1:5000/fake_journey?from=48.85,2.35&to=52.517,13.388&start=2019-11-28.
The format has to be from = any string to = any string start = any string