Porto Alegre Traffic Accidents metrics visualization
Data:
Taken from http://www.datapoa.com.br/dataset/acidentes-de-transito
Requirements:
Python (download & install: https://www.python.org/downloads/) Flask (download & install: http://flask.pocoo.org/docs/0.10/installation/)
Setup:
- Unzip the files Acidentes-POA-master/dados/dados.zip into Acidentes-POA-master/dados
- Run: python rebuild_database.py
- Run: python run.py
Endpoints (all based on http://localhost:5000):
/ : main view /query/top/int:n : get the total top vias with accidents /query/top//int:n : get the top vias with accidents /db/int:index : get the json from the row where ID =