Skip to content

Crash data for Chicago in 2005-2011 where a bicyclist or pedestrian was the first point of impact by a driver's automobile, as collected by responding law enforcement and maintained by the Illinois Department of Transportation.

Notifications You must be signed in to change notification settings

arbylee/Chicago-Crash-Browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chicago Crash Browser

Demo - will load the intersection of 18th Street and Blue Island Avenue.

The Chicago Crash Browser is an interface for the automobile crash data from the Illinois Department of Transportation (IDOT). Crash data for Chicago in 2005-2011 where a bicyclist or pedestrian was the first point of impact by a driver's automobile, as collected by responding law enforcement and maintained by IDOT.

##History

  • First Chicago bike crash map created in February 2011
  • Derek Eder created an enhanced version a bit later
  • Lots of press for the Chicago bike crash map
  • Attempted to create a public browser later in 2011, to get more details about the crashes, especially after I obtained additional years of data

##Purpose The purpose of the Crash Browser is two fold:

  1. Give planners, politicians, and policy makers the tools and information they need to make good decisions and prioritization about where to make investments about transportation safety.

  2. Give activists and advocates the information they need to demand change in the transportation system in the most effective way.

The Chicago Crash Browser will, in addition to simple browsing, have a storytelling component to go beyond pure figures of crash frequencies at an intersection.

##Enhancements Desired enhancements include:

  • Speeding up the PostGIS tables
  • Joining the "CrashExtract" table with the "PersonExtract" table so the full number of bicyclists and pedestrians are counted in the figures returned to the user for their point search. Alternative: After the crash "casenumbers" (unique ID) are returned, send a query to the "PersonExtract" table once per casenumber to get the person information (this might be faster than joining)
  • Usability enhancements that tell the user the database is running their search; show how much time a search has taken; reverse geocodes the searched coordinates
  • Style changes
  • Update the API to return details like the number of rows returned and the time it took for the PostgreSQL server to run the query
  • Close the popup when the search results are returned (for some reason I cannot figure this out, and I thought it was pretty simple)
  • Make it tablet-friendly
  • Count the number of crashes per year and give the bike/pedestrian numbers in a year by year breakdown
  • "Bookmark" the locations so a person can create a text list of locations and their resulting crash figures. This is so a user can create a report of several intersections for their neighborhood.

##Data Structure One table is currently used, called "CrashExtract". It's called this because the crash data is an extract from the entire database, extracted by year and city. Whenever the whole state was provided to me, I stripped out all cities except Chicago ("City Code" != 1051).

CrashExtract data dictionary

##API The API returns JSON and has the following GET parameters:

  • distance (in feet). This is capped at 1,000 feet.
  • north, south, east, west (to create a bounding box inserted as a WHERE statement to reduce the dataset search time)
  • lat (latitude)
  • lng (longitude)

Example call

api.php?lat=41.85755162802421&lng=-87.64665126800537&north=41.86975344657134&south=41.84533324486843&east=-87.62577295303345&west=-87.66748666763306&distance=150

In the webpage, the bounds are obtained via Leaflet.

The records' WGS84 (EPSG:4326) coordinates are converted to EPSG:3436 (Illinois StatePlane West feet) to be able to search distance in feet (this may not be the best method). This is the data's original projection although the records' WGS84 coordinates (provided by the data author) are the actual fields used.

##Credits##

  • Michael Carney and Sebastian Lew (who got me interested in automobile crash data in the first place after they asked if I had it)
  • Lori M. at IDOT (for providing the data)
  • Jerad Weiner
  • Amanda Woodall at Active Transportation Alliance (for helping me understand the data)
  • Derek Eder and Nick Rougeux (for continued tech support and brainstorming)
  • Cory Mollett (for PostgreSQL and Amazon Web Services help)
  • Ryan Lakes (for motivating me to resurrect this)
  • Nabil Nazha (for assistance in developing a method relating intersections to bike crashes in GIS and determining the ideal distance)
  • Bill Vassilakis
  • Trina Chiasson
  • Richard Lee who made the first edits via GitHub.
  • Everyone who appreciates this work.

##Cities outside Illinois## As much as I would love to provide this for outside Illinois, the fact is that the more cities (and their crashes) in the database, the slower this web application works.

About

Crash data for Chicago in 2005-2011 where a bicyclist or pedestrian was the first point of impact by a driver's automobile, as collected by responding law enforcement and maintained by the Illinois Department of Transportation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published