This repo is meant as public read-only copy of the original project, which is hosted on a non-public university server.
- Ensure you have access to a running postgres instance
- Ensure you have
python3
andpip
installed. - From within the root of the project, run
pip install -r requirements.txt
. This insures all python dependecies are met. - In
src/fill_db.py
look for thedb_info
variable and adapt it to your credentials.
In the following the order matters.
- Run
ensure_dirs_exist.py
. This makes sure all the directories needed to perform the data integration and logging exist. - Run
integrate.py
. Adjust the main method to fit your needs. In particular adjust theprocess_all_data()
method, such that the parameter corresponding to a dataset isFalse
if the script shall download it form the internet, andTrue
else. To get geojson data form signaled speed in to city of Zurich uncomment the line in themain
method where you findload_tempo_geojson_from_api_to_local()
- Run
fill_db.py
. This will load the data into the database based on the credentials given in thedb_info
variable. - Perform Analysis.