This is a project for travel time prediction in Austin, TX using the dataset provided by the City of Austin.
Make sure you have Python 2.7 installed on your system.
pip install -r requirements.txt
- Download Bluetooth Travel Sensor data from City of Austin Website
- Put
Travel_Sensors.csv
andBluetooth_Travel_Sensors_-Traffic_Match_Summary_Records__TMSR_.csv
in the project folder.
cd database_processing
python preprocess.py
python run.py
Open http://localhost:8000/ to see the app running.
Select the origin, destination and time to see how long it takes to get there.
See the history stats for the average travelling time between each station.
Overview the traffic on Lamar Road based on different section and time.
They are stored inside views folder. To add a new route,
- Add a new .py file in views/
- Import it into run.py
- Register the blueprint to our app.
The new .py file should have a format like this:
from flask import Blueprint
routeName = Blueprint('routeName', __name__)
@routeName.route("/routeName", methods=['GET'])
def routeName_function():
return "The new route page."
Tests are put in tests folder. If you want to import something from the top level module, add it to context.py and then import to your test file.