Skip to content

dylngg/slc-crime-heatmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slc-crime-heatmap

A heatmap of crime in Salt Lake City on the web.

SLC Crime Heatmap The heatmap is based off of Salt Lake City's Police Cases. To create the heatmap, I changed the x & y coordinates to a global coordinate system and had to clean up some of the data. You can view the raw data, along with my modifications in the raw-data folder.

View It Live

You can view the web heatmap live here

Running it yourself

To run it yourself, you'll want to download this repository and get a google maps api key (since the current key is restricted to https://dylngg.github.io/slc-crime-heatmap/). Enter that key in the index.html, where <script src="https://maps.googleapis.com/maps/api/js?key=KEY&sensor=false"></script> appears with an actual key. After that, you should be able to open the heatmap by opening index.html.

Running the geolocation conversion script

To run the script which converts the x and y location data of the crime from EPSG:32043 to WGS84, you'll need the pandas and pyproj modules.

To install the required modules, run:

$ pip install pandas pyproj

About

A heatmap of crime in Salt Lake City on the web.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published