Groupwork for CS 196 Group 23
A COVID-19 map which displays data on where most of the cases are concentrated by superimposing cases on google maps or through a purely diagrammatic representation of the cases. While there may be other applications/ services that provide covid-19 trackers, our app stands out in the aspect that we aim to provide data accurate for the locality that the person uses the tracker in. In particular, it is most important to get this app working for the Urbana-Champaign area.
Notes:
- Consistent with https://covid-23.herokuapp.com/.
- Use
git push heroku masterto update heroku!
- Use
GET /news/
result.dateis the current dateresult.locationsis a dictionary of locations with keys of the formUS-<2 letter state code>, as inUS-MAuse_cachedistrueif we used the cache on heroku (this should only happen once per day globally)
The front-end should maintain a list of codes and fetch a new code every few days. This method is very much a test method and kind of useless if you have a random number generator, but ensures that the random codes are unique.
GET /get_new_code/
XP0SLBENH79ORLQOZXYUJFVE, a string that can be stored locally
POST /check_compromised/
Body:
{ "codes": ["all", "my", "codes", "in", "the", "past", "few", "days"] }
resultistrueif we've been near someone with covid,falseotherwise
As often as possible, limited by security features on the OS.
POST /post_location/
Body:
{ "code": "our current code", "lat": some_latitude, "long": some_longitude, "time": some_optional_time_else_well_find_current_time}
{"success": True}
If we have covid
POST /post_compromised_code/
Body:
{ "codes": ["all", "my", "codes", "in", "the", "past", "few", "days"] }
{"success": True}
> python backend/champaign/scrapers.py
> python backend/nation_state/nation_state_data_plotter.py
The data will be in backend/plt
