Module to generate a safety score for brazilian roads.
Project description
General Instructions
Generating API token
This project uses openrouteservice API to plot maps and routes. So the following steps are necessary at first:
- Sign up on openrouteservice.org to generate an API token;
- Create a
.env
file with the following content:TOKEN=XXXXXXXXXXXXXXX
, whereXXXXXXXXXXXXXXX
is the token generated in the step before;
Accident road data
The accidents data used were extracted from the Polícia Rodoviária Federal website.
The notebook get_data.ipynb
inside safety_road_mapping/notebooks
folder is responsible to download and extract the data used. If you want to directly download the files you can click here.
Roadmap
- The accidents data used comes just from federal police source, so there are some routes that don't receive score because they are state highways.
- The routes subsections are not connected, once they are plotted individually in the map. Visually it can be interesting to connect them. (Is it possible or necessary?)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
safety-road-mapping-0.1.4.tar.gz
(459.3 kB
view details)
Built Distribution
File details
Details for the file safety-road-mapping-0.1.4.tar.gz
.
File metadata
- Download URL: safety-road-mapping-0.1.4.tar.gz
- Upload date:
- Size: 459.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.8.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d96f20e06e70a2e5142366ab4f70def53a9eda344bc369ac1d0ee8e1b25a1279 |
|
MD5 | 3f42a26391037cf118c0f038b434718b |
|
BLAKE2b-256 | 17cee1cea7967341d3c5741d754c6ef70719ace348308bc98c465816d159b797 |
File details
Details for the file safety_road_mapping-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: safety_road_mapping-0.1.4-py3-none-any.whl
- Upload date:
- Size: 472.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.8.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a576db6b3f692c2afb46aba910a393753d70646be92b49324af66eb2138aaa3b |
|
MD5 | b6941d6489f7657e41b2e4e0ac8fa523 |
|
BLAKE2b-256 | 0ef5bba984b25e978f374e3bc1f3b7d8217db91aeb92578c191b984011ffc50c |