Skip to main content

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:

  1. Sign up on openrouteservice.org to generate an API token;
  2. Create a .env file with the following content: TOKEN=XXXXXXXXXXXXXXX, where XXXXXXXXXXXXXXX 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)

Uploaded Source

Built Distribution

safety_road_mapping-0.1.4-py3-none-any.whl (472.6 kB view details)

Uploaded Python 3

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

Hashes for safety-road-mapping-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d96f20e06e70a2e5142366ab4f70def53a9eda344bc369ac1d0ee8e1b25a1279
MD5 3f42a26391037cf118c0f038b434718b
BLAKE2b-256 17cee1cea7967341d3c5741d754c6ef70719ace348308bc98c465816d159b797

See more details on using hashes here.

File details

Details for the file safety_road_mapping-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for safety_road_mapping-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a576db6b3f692c2afb46aba910a393753d70646be92b49324af66eb2138aaa3b
MD5 b6941d6489f7657e41b2e4e0ac8fa523
BLAKE2b-256 0ef5bba984b25e978f374e3bc1f3b7d8217db91aeb92578c191b984011ffc50c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page