coronavirus-tracker-api icon indicating copy to clipboard operation
coronavirus-tracker-api copied to clipboard

World Timeline

Open altezza04 opened this issue 4 years ago • 2 comments

With V2 endpoint now can get per country timeline, which is very good, thanks! but is it possible to get timeline for the World? It will be very useful for plotting a World graph in frontend, thanks!

altezza04 avatar Mar 18 '20 09:03 altezza04

Agreed.

ExpDev07 avatar Mar 18 '20 16:03 ExpDev07

It's possible to create a plot of world graph with current version of API. you have to merge all timelines together to build your own world timelines. it takes a little bit of unnecessary work but, still, its possible. I used this approach in this commit: https://github.com/itsamirrezah/COVID-19/commit/96531890262ff90b80dd4e3a02a96d74ee23044f#diff-887d82a275c962af219a78e71a23411aR126

The major problem with this approach is that it takes a lot of time to get data from/v2/locations?timelines=true, related to #104 It would be much nicer if API supported world timelines.

itsamirrezah avatar Apr 15 '20 09:04 itsamirrezah