ExpDev07 / coronavirus-tracker-api

🦠 A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
https://coronavirus-tracker-api.herokuapp.com
GNU General Public License v3.0
1.59k stars 323 forks source link

latest for U.S. counties showing 0 #44

Closed marbysneaker closed 4 years ago

marbysneaker commented 4 years ago

Is this still working? It seems all provinces/counties in California are all showing 0 for the value of "latest"

marbysneaker commented 4 years ago

Also is there a way to pull US (the whole country) data alone? I can't find one with just US data its all separated in states and counties.

ExpDev07 commented 4 years ago

California is showing 282 for me? You can easily get the U.S data alone by doing some mapping. E.g in js:

locations.map(loc => loc.country_code === 'US'); // all U.S. locations.

The data is pulled from here: https://github.com/CSSEGISandData/2019-nCoV, so if the county shows 0, it probably means there's no data for it. I also believe they stopped tracking at county/city-level and are now doing states as whole instead which is also why they might show 0.

ralyodio commented 4 years ago

I'm missing like 90% of cases in US. https://virusoutbreak.wtf

On Sat, Mar 14, 2020 at 2:42 PM ExpDev notifications@github.com wrote:

California is showing 282 for me? You can easily get the U.S data alone by doing some mapping. E.g in js:

locations.map(loc => loc.country_code === 'US'); // all U.S. locations.

The data is pulled from here: https://github.com/CSSEGISandData/2019-nCoV, so if the county shows 0, it probably means there's no data for it. I also believe they stopped tracking at county/city-level and are now doing states as whole instead which is also why they might show 0.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ExpDev07/coronavirus-tracker-api/issues/44#issuecomment-599138133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAGV5KTQF7C4JTUE564DJTRHP23NANCNFSM4LJZKYWA .

-- Anthony Ettinger http://anthony.ettinger.name anthony@ettinger.name +1 (831) 406-1123

marbysneaker commented 4 years ago

Ok got it. Question for the US locations functions, won't that function give you a higher number since its tracking state locations and counties within the states?

ExpDev07 commented 4 years ago

@marbysneaker technically it shouldn't. Take the state of California, which shows 282, however, then all its counties will show 0. I'm not sure why JSU still have them there when they're not being tracked though.

ExpDev07 commented 4 years ago

@chovy which makes sense since JSU has decided to not track counties anymore and instead just to states.

ralyodio commented 4 years ago

ahh i see. it had SF yesterday and that was it for california (21). I now see 282. This kind of sucks. Its not as detailed. I can no longer track my area.

On Sat, Mar 14, 2020 at 3:35 PM ExpDev notifications@github.com wrote:

@chovy https://github.com/chovy which makes sense since JSU has decided to not track counties anymore and instead just to states.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ExpDev07/coronavirus-tracker-api/issues/44#issuecomment-599143261, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAGV5JHI6VTUPTD6UUZYATRHQBBTANCNFSM4LJZKYWA .

-- Anthony Ettinger http://anthony.ettinger.name anthony@ettinger.name +1 (831) 406-1123

ExpDev07 commented 4 years ago

It indeed does suck. I don't know why the decision to drop counties was, but I'm sure you can find it over at JSU's repository @chovy

ralyodio commented 4 years ago

shouldn't we have a multitude of data feeds by now not just JHU?

On Sat, Mar 14, 2020 at 4:17 PM ExpDev notifications@github.com wrote:

It indeed does suck. I don't know why the decision to drop counties was, but I'm sure you can find it over at JSU's repository @chovy https://github.com/chovy

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ExpDev07/coronavirus-tracker-api/issues/44#issuecomment-599146597, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAGV5NRVH7IOWNO2RUNNZ3RHQGATANCNFSM4LJZKYWA .

-- Anthony Ettinger http://anthony.ettinger.name anthony@ettinger.name +1 (831) 406-1123

mugetsu commented 4 years ago

"latest" are all set to 0

ralyodio commented 4 years ago

yup. same here.

On Sat, Mar 14, 2020 at 7:31 PM Randell Quitain notifications@github.com wrote:

"latest" are all set to 0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ExpDev07/coronavirus-tracker-api/issues/44#issuecomment-599159454, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAGV5LLUA7P7WFRWF4HDNTRHQ4WTANCNFSM4LJZKYWA .

-- Anthony Ettinger http://anthony.ettinger.name anthony@ettinger.name +1 (831) 406-1123

altezza04 commented 4 years ago

yes here, all confirmed data is 0, may be the server cached the empty data right at the time when john hopkins update the data?

ralyodio commented 4 years ago

it happens a lot. works for a fews, no data for a few hours. repeat.

On Sat, Mar 14, 2020 at 7:42 PM altezza04 notifications@github.com wrote:

yes here, all confirmed data is 0, may be the server cached the empty data right at the time when john hopkins update the data?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ExpDev07/coronavirus-tracker-api/issues/44#issuecomment-599160150, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAGV5LKIKQEMP5XRQXW6LLRHQ6BPANCNFSM4LJZKYWA .

-- Anthony Ettinger http://anthony.ettinger.name anthony@ettinger.name +1 (831) 406-1123

marbysneaker commented 4 years ago

@ExpDev07 got it, thank you !

ExpDev07 commented 4 years ago

@altezza04 @mugetsu This is due to JSU again setting empty data for latest available (3/14): https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Confirmed.csv. It happened yesterday as well :/.

Been reported here: https://github.com/CSSEGISandData/COVID-19/issues/756.

Hikmer commented 4 years ago

The base data is super buggy and been causing lots of frustration for many trying to create awareness and model the outbreak. Its pretty disappointing.

ExpDev07 commented 4 years ago

@Hikmer Unfortunately there’s not much I can do about it besides introducing a different data source (which I’m working on). JSU constantly changes and breaks their data which leads to unexpected errors in the API.

Hikmer commented 4 years ago

Yeah, its the most critical time to get this right, and they aren't doing a good job keeping the data clean and consistent.