Skip to content

aviklai/anyway

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANYWAY Build Status Build status

Welcome to ANYWAY!

ANYWAY is a volunteer based project acting under the umbrella of the Public Knowledge Workshop (“HASADNA”).

Feel free to contribute to the project. To report bugs and feature requests, please open an issue on GitHub. See Code Directory Tree Structure.

About

Our Goal

At ANYWAY we aim to reduce road accidents by:

  1. Raising public awareness of existing road hazards, thereby leading towards safer road behaviour.
  2. Collaborating with authorities in order to assist and drive them to find solutions in light of Vision Zero. Such solutions will improve road infrastructure and behavioural problems in attempt to prevent road fatalities.

Take a look at our facebook page. See also our Android app and iOS app on GitHub.

ANYWAY’s Interactive Map:

ANYWAY presents locations over an interactive map as well as information regarding traffic accidents including casualties, information originating from the Central Bureau of Statistics (הלשכה המרכזית לסטטיסטיקה) and United Hatzalah’s (איחוד הצלה) data, and traffic violations as reported by road vigilantes (שומרי הדרך). The website allows visitors to discuss possible solutions in their residential or drive zone with the goal of coming up with field solutions by both drivers and pedestrians, on both local and national scope.

The map is also available at oway.org.il.

ANYWAY Schools Report

At the beginning of one of the school years we created a report of pedestrian accidents around schools - this is one simple example of insights that can be extracted from the data that we have.

ANYWAY’s Infographics Generator - Our Next Challenge

ANYWAY’s next challenge is to form an automatic generator of infographics to empower and serve journalists, bloggers, public opinion leaders, community leaders etc. in the era of data journalism. The generated infographics will enhance reporting and news writing with the use of statistics. Each infographic will be created for a real-time road accident related news flash and will provide a deeper insight into the story based on historical data. This, we believe, will increase both the quantity and quality of articles dealing with road accidents, and will result in raising public awareness and creating pressure on decision makers to initiate infrastructure improvements in light of Vision Zero.

HASADNA

The Public Knowledge Workshop (“HASADNA”) is a volunteer-based, non-profit, non-governmental, and non-political organization, working to promote transparency and civic involvement by building open source technological tools to liberate valuable data collected by public institutions and make them accessible, simple and understandable for everyone. The Public Knowledge Workshop functions as an organizational basis to the projects acting within it. One of those projects is ANYWAY.

Vision Zero

Read about Vision Zero: Hebrew, English

The Israel National Road Safety Authority (הרשות הלאומית לבטיחות בדרכים)

Take a look at the daily reports, 2018 yearly report (Hebrew)

Contributing

  • We try to follow the process of other Hasadna projects, e.g. Open-Knesset.
  • Please take a moment to read our "Contributing to ANYWAY" manifest.
  • To see our GitHub issues in a nicer interface, take a look at HuBoard. Check out the Ready list to find a task to work on. The Backlog list there contains issues that are still not ready to be started. The Working list contains issues already started by developers (make sure to move your issue there once you start working on it), and the Done list contains completed issues that are waiting to be confirmed done and closed.

Getting the code

  1. Fork this repository on GitHub
  2. git clone https://github.com/*you*/anyway
  3. Add the main repository as your upstream remote: git remote add upstream https://github.com/hasadna/anyway
  • Get updates whenever you start working: git pull upstream dev
  • Push to your fork when you've committed your changes and tested them: git push. Now make sure CI tests are passing (Travis CI and AppVeyor) and make a pull request from your fork on GitHub

Docker

We are using DOCKER. See DOCKER

Optional: Getting the Data

  1. Optionally, Get the complete accidents file after sending a permission request, and extract it into /static/data/cbs. Otherwise, you'll use the example accidents files that you already got with the code.
  2. Get the RSA file from rsa file after sending a permission request and extract the file into /static/data/rsa.

Optional: Adding CI to your forked repository

  1. Add Travis CI to your forked repository - in your github forked repository: Settings -> Integrations & services -> Add service -> Travis CI
  2. Add AppVeyor to your forked repository - Login with your GitHub account -> New Project -> GitHub -> anyway

Testing

To run tests: pylint -j $(nproc) anyway tests && pytest -m "not browser" ./tests

If you also wish to run the real browser tests, replace-m "not browser" with --driver Chrome or specify the browser of your choice. To learn more, read about pytest-selenium.

Altering the database schema

When creating a patch that alters the database schema, you should use generate the appropriate Alembic revision by running:

alembic revision --autogenerate -m "Description of the change"

Make sure to commit your revision together with the code.

Translation and Localization

See TRANSLATE

About

ANYWAY - Car accidents map

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 56.4%
  • JavaScript 25.7%
  • CSS 11.2%
  • HTML 6.5%
  • PLpgSQL 0.1%
  • Dockerfile 0.1%