Skip to content

Good Streets was create as part of WomenHack held March 18, 2017 at Pivotal Labs. We had 10 hours to code a solution to one of several issues facing women.

Notifications You must be signed in to change notification settings

soo-park/good-streets

 
 

Repository files navigation

Good Streets

Overview

Good Streets was create as part of WomenHack - The All-Women Hackathon San Francisco held March 18, 2017 at Pivotal Labs. We had 10 hours to code a solution to one of several issues facing women.

The Team

The Solution

Good Streets is intended to address the issue of women's safety. We mapped out recent crime data on a map of San Francisco. In keeping with out empowerment focus, we also plotted out Safe Havens that women could use if they were feeling unsafe. To top it all off, we plotted out pro-active resources like self-defense classes that would increase future feelings of safety. And of course, the app can be used by anyone concerned with their safety!

The goal is that someone could open the app, see that the current area is a little unsafe, and choose a safer walking route, or duck into a safe haven and call a Lyft.

The Tech Stack

The site is built using Python, Flask, and SQLAlchemy. Crime data was provided by the City of San Francisco police reports in CSV format. We imported that into a Posgres DB, then used Python to extract the data and write it in JavaScript format so the Google Maps API could plot it out properly. To overlay the safe havens, we made dynamic queries to the Yelp API to retrieve the hours and locations of businesses categories like police stations or bars (chosen because they keep late hours). Bootstrap was used for the template.

Forking

You are welcome to fork the project and build on the code base. It would be great to make the world a little safer!

Seeding the DB

To seed the test database, run:

createdb test_crime_data
python seed.py test

Otherwise, run:

createdb crime_data
python seed.py

Starting the Server

To start the server, run:

python server.py

About

Good Streets was create as part of WomenHack held March 18, 2017 at Pivotal Labs. We had 10 hours to code a solution to one of several issues facing women.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 36.4%
  • JavaScript 30.3%
  • CSS 19.6%
  • HTML 13.7%