This project optimises transport routes in London. The route can be optimised based on quickest time, shortest distance, or lowest emissions. Python and R versions of the source code are provided (both currently under development).
To use this project, please provide a TFL API access key id pair (can be requested here). These should be in a .txt file that looks like below:
app_id: <id here>
app_key: <key here>
Once you have cloned the repository, to launch the model using python, please install conda (or your preferred alternative) and run the following command in your terminal:
conda env create -f environment.yml
conda activate green-mapper
Once the params.yml file is up to date with credentials file path, url parameters and base map parameters, the application can be launched by simply running launch.py using the following code:
python launch.py
This should lead to the following output in the terminal:
Dash is running on http://127.0.0.1:8050/
* Serving Flask app 'launch'
* Debug mode: on
Just copy and paste the url Dash is running on into a browser of your choice and the app will launch. Once you have put in your desired journey and selected a route, it should look like this:
