amberheilman / StationDown

Collaborating Brown-out data with fire incident locations
4 stars 2 forks source link

Look at heatmaps for incidents #3

Open ghost opened 10 years ago

ghost commented 10 years ago

The idea here is to use geocoding to determine latitude/longitude of incidents, and then make a heatmap to determine what the "hottest" areas are. Probably will be looking at leaflet or google APIs to do the heatmapping. A suggestion given at the meetup is to look at whathood to see how it does the heatmapping.

ghost commented 10 years ago

leaflet has a plugin for heatmaps. The examples are pretty illustrative, and I'll take a look at how well it supports floating point data (like we're going to get back from the geocoding API)

jimRsmiley commented 10 years ago

I have a lot of experience with that leaflet plugin.

WhatHood uses it to map the "intensity" of the identity of neighborhoods. example:

http://whathood.in/Philadelphia/Fishtown

The redder it is, the more people agree on the location.

I also heat mapped the number of crimes occurring near Septa regional rail stations:

http://jimrsmiley.github.io/septa-regional-rail-crime-heatmap/

Then for my construction permit heatmap, I switched to neighborhood border shapefiles:

http://constructionpermits.phl.io/

You can also use zip codes, census tracts/districts, if there are Philadelphia fire department zones, you can use them.

From my experience, using the leaflet heatmap plugin can be tricky, especially if there isn't a lot of points near each other.