covidatlas / li

Next-generation serverless crawler for COVID-19 data
Apache License 2.0
57 stars 33 forks source link

Granular data files #403

Closed jzohrab closed 4 years ago

jzohrab commented 4 years ago

Original issue https://github.com/covidatlas/coronadatascraper/issues/621, transferred here on Friday Apr 03, 2020 at 10:41 GMT


Description.

I'm frustrated that my Pandemic Estimator takes long time fetching whole dataset, while I display only one location at a time.

Describe the solution you'd like

I'd like a endpoint for single location. Instead of https://coronadatascraper.com/timeseries-byLocation.json, sometime like

Where in the meta.json there would be a subset what's in timeseries-byLocation.json without dates prop, so that I can populate the dropdown/autofill for user to select the necessary location.

Describe alternatives you've considered

I've considered splitting the timeseries-byLocation.json as part of dashboard logic but it's stupid idea - a lot better to do so as part of this repo so everyone would benefit from it.

Notes

Also I'd love to have aggregation beyond country level - by region and world total. If you wish to provide that then that should be taken into account by organizing the API path

jzohrab commented 4 years ago

(Transferred comment)

@ryanblock is working on a new architecture which will allow API endpoints like this.