Ruby: Using Google Maps Heat Map to Display Chicago Crime Statistics

Each crime report contains latitude and longitude coordinates.  I used ruby to parse out each coordinate from this source :  https://data.cityofchicago.org.  Then I appended those points into a heat map.

Update: This dataset has been expanded on, in this post DataViz: Visualizing Chicago Narcotics Crime Data.

Chicago DECEPTIVE PRACTICE – 8/8/2012 to 8/8/2013

DECEPTIVE PRACTICE

Chicago ALL CRIMES – 8/8/2012 to 8/8/2013
HEATMAPOFCRIME

Chicago NARCOTICS – 8/8/2012 to 8/8/2013
NARCOTICS

Chicago HOMICIDE – 8/8/2012 to 8/8/2013
murderonlysat

Ruby example to parse all coordinates for Primary Crime Type: DECEPTIVE PRACTICE
RUBY

Output
output

3 thoughts on “Ruby: Using Google Maps Heat Map to Display Chicago Crime Statistics

  1. Erin

    Very curious you would conclude this identifies where one could purchase good narcotics. To me, that looks like a map of where drug dealers are stupid. Good, smart criminals don’t get caught–just look at Congress.

    Reply

Leave a Reply to Erin Cancel reply

Your email address will not be published. Required fields are marked *