4. THE COVID19_STATS API

The API provides a much richer base of functionality than the CLI tools, although I have gotten very far by using them. The structure of the API consists of a singleton that contains all the GIS, full COVID-19 state of all counties in the US, and necessary configuration data. Fig. 4.1 describes the implementation flow of synthesizing COVID-19 summary data.

../_images/covid19_stats_api_covid19database_singleton.png

Fig. 4.1 COVID19Database is the singleton that contains US GIS data, and trends of cumulative COVID-19 cases and deaths for all counties and atomic territorial units within the United States. It is somewhat-lazily instantiated by GIS functionality that lives in gis, and is in turn called by utility methods in core.

Subsequent subsections describe each of the main modules, with special emphasis given to COVID19Database due to its integral role.