jwestw / Public_Transport_Efficiency

A project to measure the efficiency of public transport in the UK
MIT License
1 stars 0 forks source link

Create a list of journeys from locations list #45

Open chloemurrell opened 2 years ago

chloemurrell commented 2 years ago

Journeys

Example destinations:

Destination name coordinate x coordinate y
St David's Junior School 50.12315 3.4541
Hair dresser 50.546 3.484
ASDA 50.1232 3.524

Example journeys:

Start location Destination
St David's Junior School Hair dresser
Hair dresser Home
ASDA St David's Junior School

Follow on from #36

james-westwood commented 2 years ago

I would consider the use of combinations https://docs.python.org/3/library/itertools.html#itertools.combinations

penbet commented 1 year ago

Code to select different departure locations currently uses Call_API_code, with an additonal parameter to choose whether we use defined departure locations or a generic one. Currently it is able to select the first departure location from my list of 8, next steps are for the code to iterate through the entire list of 8 locations and create a matrix of journey times.