Skip to content

Travel-my-way/back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites:

Version python 3

pip install -r requirements.txt

Launch the API:

From your terminal

cd api
python main.py

Test the API:

2 end_points

Journey

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)

Fake_journey

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