puripant / covid19-patients

Visualizing confirmed COVID-19 cases in Thailand with an animated timeline
https://puripant.github.io/covid19-patients/
1 stars 0 forks source link

Thai COVID-2019 data API #1

Open p16i opened 4 years ago

p16i commented 4 years ago

IMHO, it would be good to keep your website updated with the latest data. I think you can use https://covid19.th-stat.com/th/api.

An automatic update can be handled by GitHub Action. I've recently implemented the pipeline, and it seems to work well. Please see https://github.com/heytitle/covid-19/blob/master/.github/workflows/build.yml.

The pipeline is for https://www.datawrapper.de/_/otIzi/.

puripant commented 4 years ago

Thanks for the suggestion. One reason why I haven't used any API to update the data is that the visualization doesn't scale well. It works only for the first few hundred cases but not much beyond that. If one case is one pixel thick, with something like fisheye zooming, it may work. On my todo list.