Skip to content

EugMJang/Covid-20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

group-23

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.

Backend API Overview

Notes:

News

Request

GET /news/

Response

  • result.date is the current date
  • result.locations is a dictionary of locations with keys of the form US-<2 letter state code>, as in US-MA
  • use_cached is true if we used the cache on heroku (this should only happen once per day globally)

Contact tracing: get a new code

Usage

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.

Request

GET /get_new_code/

Response

XP0SLBENH79ORLQOZXYUJFVE, a string that can be stored locally

Contact tracing: check compromised

Request

POST /check_compromised/

Body:

{ "codes": ["all", "my", "codes", "in", "the", "past", "few", "days"] }

Response

  • result is true if we've been near someone with covid, false otherwise

Contact tracing: post location

Usage

As often as possible, limited by security features on the OS.

Request

POST /post_location/

Body:

{ "code": "our current code", "lat": some_latitude, "long": some_longitude, "time": some_optional_time_else_well_find_current_time}

Response

{"success": True}

Contact tracing: post compromised codes

Usage

If we have covid

Request

POST /post_compromised_code/

Body:

{ "codes": ["all", "my", "codes", "in", "the", "past", "few", "days"] }

Response

{"success": True}

Backend CLI

> python backend/champaign/scrapers.py
> python backend/nation_state/nation_state_data_plotter.py

The data will be in backend/plt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors