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;
  3. Install the lib: pip install safety-road-mapping
  4. Get the road accidents according the instructions bellow: Getting accident road data
  5. See the documentation on: safety documentation
  6. See the examples on how to use the lib on: how-to-use.ipynb

Getting accident road data

Adding São Paulo data

Other possible steps on the project

  • The accidents data used comes just from road federal police source, so there are some routes that don't receive score because they are state highways.
  • Create some unit tests.
  • Use Renaest data (currently only SP has geolocation data).
  • Include other variables in the score calculation.
  • Include driver behaviors data.
  • Implement an algorithm to predict accidents.
  • 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.7.tar.gz (538.0 kB view details)

Uploaded Source

Built Distribution

safety_road_mapping-0.1.7-py3-none-any.whl (551.2 kB view details)

Uploaded Python 3

File details

Details for the file safety-road-mapping-0.1.7.tar.gz.

File metadata

  • Download URL: safety-road-mapping-0.1.7.tar.gz
  • Upload date:
  • Size: 538.0 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.7.tar.gz
Algorithm Hash digest
SHA256 5b577b87f6d01d6f2ea169257569b57865cfd3f0c158b357dc18b29fa9978a07
MD5 4e7deb8d5c323f4dc44734e3d6dd608f
BLAKE2b-256 4d5911cf4ea0c70519086a6d80b719dd6c8ac9137bdb03fa5b85a55fc2049df5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for safety_road_mapping-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bd6cb06109ef2cfc58bc22a2cac850554d023c12af5a49d3a4aa13cd52ad20bb
MD5 cdf3a34e8d8fc6d58d9bf6c71cee39c9
BLAKE2b-256 c5413fcf59f428d5553c7e13dfa94ef72aca3a747d531379e5f6ca8d575febb8

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