axisbits / covid-api

API based on publicly available data by Johns Hopkins CSSE
20 stars 0 forks source link

Country only data #11

Closed gregchak closed 3 years ago

gregchak commented 4 years ago

Would it be possible to modify or create a new endpoint the returns country only data? For example, if I just want stats on the US for 7/7/2020, the request to /reports?iso=USA&date=2020-07-07 returns all the region and city data too. The same could be said for just needing Region info, but that response payload is small enough that its not too big of a deal.

elitemaks commented 4 years ago

@gregchak I see a possible issue here. For example, in the data CSV from John Hopkins, there is a record - "Province - French Guiana, Country - France". If we combine all regions and display a total for France then this region will be counted too. But it's an overseas territory and not a region of France, so it might be misleading. The same is for China - Hong Kong - which causes a lot of debates on the Johns Hopkins GitHub page. So, at the moment I'm not sure how to separate regions of the country and various overseas and dependent territories.

gregchak commented 4 years ago

I can see that as an issue. Very good point. Especially if the overseas and dependent territories are not tagged/labelled as such in the data.

elitemaks commented 3 years ago

Not possible to implement with the current CSV structure