GithubHelp home page GithubHelp logo

amitra / bikemaps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sparlab/bikemaps

0.0 2.0 0.0 37.96 MB

A web application for tracking and visualizing bicycle accidents, near misses, hazards, and thefts.

Home Page: https://bikemaps.org

License: MIT License

Python 54.59% CSS 1.07% JavaScript 37.08% HTML 7.26%

bikemaps's Introduction

BikeMaps

[http://bikemaps.org]

A SPARLab project.

A database driven webapp that allows users to submit bike accidents and near-misses. Data is analyzed to detect areas/routes with high traffic and rates of incidents.

Dependancies
  • Python 2.7
  • Postgres 9.3 + PostGIS
  • psycopg2
  • Django 1.8
Database setup

The development settings require a Postgres database called "bikeDB" accessible by user "postgres" that is not password protected. Be sure to add the postGIS extension. From the terminal, run:

createdb -U postgres bikeDB
psql -U postgres -d bikeDB -c "CREATE EXTENSON postgis;"

Syncing the tables from the Django app requires running

./manage.py makemigrations
./manage.py migrate

A full list of required python packages can be found in requirements.txt and can be installed via pip pip install -r requirements.txt

If all dependancies have been met, running ./manage.py runserver should start the development server at 127.0.0.1:8000

Note: There are additional requirements for serving this application in a production setting, and the relevant Django documentation should be consulted in this scenario. This repo does not provide production settings for security reasons.

Data output

Data is output by logging into an admin account and selecting the relevant "Export" link under the user dropdown menu in the navbar This geojson data can be used directly by QGis or converted to a shapefile using ogr2ogr tools. The easiest method to convert the output geojson text to a shapefile is to copy it from the webpage and past into the "Convert from GeoJSON" box at http://ogre.adc4gis.com/

People
  • Dr. Trisalyn Nelson (Project Lead)
  • Taylor Denouden (Developer)
  • Darren Boss (Developer)

bikemaps's People

Contributors

tayden avatar dgboss avatar amitra avatar streckereck avatar jstep avatar connerleverett avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.