Open kcirerick opened 3 years ago
This would be a cool use of heat map data, and I like the idea of toggling it.
https://www.kaggle.com/sudalairajkumar/covid19-in-usa?select=us_counties_covid19_daily.csv I believe we can parse this dataset. Algorithmically, here's how I think we can approach this in pseudo-pseudo-code:
for each line in the dataset:
locate the county this case occurred;
query places for this county to obtain a coordinate object (i.e. {lat: , lng:});
if this pair is already in our map:
map[coordinate] += 1
else:
map.put(coordinate, 1)
Once we count how many cases occurred at each location, we can use the following to easily turn this into a heatmap: https://developers.google.com/maps/documentation/javascript/heatmaplayer
Using national COVID data, we can display a heatmap on the central page so that, when users search for a location they can see if that location is in a more dangerous area than another they may be considering. We can probably toggle this feature on/off so the user can see a cleaner map if desired.