epiforecasts / covidregionaldata

An interface to subnational and national level COVID-19 data. For all countries supported, this includes a daily time-series of cases. Wherever available we also provide data on deaths, hospitalisations, and tests. National level data is also supported using a range of data sources as well as linelist data and links to intervention data sets.
https://epiforecasts.io/covidregionaldata/
Other
37 stars 18 forks source link

WIP for new approach for Germany data - way towards #408 #409

Closed RichardMN closed 3 years ago

RichardMN commented 3 years ago

This provides standalone code to test downloading Germany data from RKI using their RESTful API, paging through the data in tranches as provided (25,000 rows each), only asking for the five fields we use, and trying to trim the data after each page is downloaded.

Possible model to address #408

RichardMN commented 3 years ago

This is working better now but to transfer this download into our class (which I could do) we would need to add jsonlite as a dependency for the package, and I'd like advice and comment on how much to abstract this in case there are other REST apis which a similar approach (very barebones) could/should be used for.

seabbs commented 2 years ago

Really like the idea of a standlone interface for interacting with rest apis though definitely needs thinking about on whether it can be made generalisable enough.

jsonlite seems like a reasonable dependency to add as obviously very useful for many data sources.