Inspiration

Choosing to walk to your destination is cheap, eco-friendly and healthy! What if we could also make it safe, whatever the time of the day?

Everyone who has had to walk home late at night in an unfamiliar part of the city knows that feeling of unease: Is this street safe? Should I have turned this corner and avoided this dark stretch of street? Which way is the safest?

What it does

Our website proposes different routes for the user to walk to their destination. We take into account the different locations along the itinerary, the time of the day and the crime statistics in these locations in order to evaluate the safety of different route options, and propose the safest route.

Github Link: https://github.com/sushmitachaudhari/TechTrio

How we built it

First step was to collect the data we needed and process it to make it usable for our objective. We explored the Destinations API from Google Maps. From it, we were able to retrieve detailed encoded latitude and longitude data about different walking paths options.

How To Use It:

Choose the origin and destination. After your input, the gitapp shows different routes on the map to reach from the source to destination. Each path is colored differently. Please use the key on the top-right to see what each color means. After that scroll down to see more details about the routes. Be Safe :)

What Do The Keys Mean:

Our algorithm comes up with multiple routes from origin to destination. The Green route is the path that avoids the streets where crime index is higher. Hence, it might be the safest. Likewise, yellow is safer with fewer crimes in the past along the route. Similarly, purple path has a higher crimes.

Analysis

For the analysis part, first we parse a the Analyze Boston crime database and retrieve all criminal activity that occurred near the path at a similar time in the day. The path is then scored according to how dense the criminal activity is along the way of the specific path.

Results

Results are then to be overlayed onto Google's Maps Javascript API, allowing the user to see the routes with the estimated time of travel and total distance, color-coded according to their safety rating.

Challenges we ran into

  • Finding a way to have the maps data and the crime dataset work together
  • Displaying data onto Google Maps

Accomplishments that we are proud of

  • Displaying data onto Google Maps
  • Having a functioning algorithm for rating paths

What we learned

  • using the Google Maps APIs
  • using GitHub
  • use Python to parse data

What's next for SafeWalk Boston

  • Integrating the front and back-end parts we have and develop this into a full-stack application
  • An app that supports navigation instructions and real-time GPS data
  • Display information about the path when the mouse pointer hovers over the path
  • SafeWalk New York, SafeWalk Los Angeles, SafeWalk San Francisco, and others!

Built With

Share this project:
×

Updates