covid19 icon indicating copy to clipboard operation
covid19 copied to clipboard

Support for Lat, Long, and Province/State

Open rlindskog opened this issue 4 years ago • 12 comments

Hey, great project! It's nice having a cached JSON representation of CSSEGISandData/COVID on github!

What do you think about adding lat / long attributes? Also province/states (maybe in a separate JSON file)?

I can help if it is something you're interested in.

rlindskog avatar Mar 17 '20 20:03 rlindskog

Yes! do you want to send a PR changing the action to also create/update a timeline-by-region.json or something similar?

There's also countries.json with some info about each country, feel free to add more info to it.

pomber avatar Mar 17 '20 21:03 pomber

I added provincial breakdown here: https://github.com/titaniumbones/covid19 . I don't understand github actions, therefore can't test them, and wanted to get this up ASAP so I just copied actions.js to manual.js and made a few changes there. extracted some logic into named functions. More than happy to make a PR but I won't be able to test till I have a chance to learn about actions (maybe tonight but maybe not.

titaniumbones avatar Mar 17 '20 23:03 titaniumbones

(I also added the CSSE repo as a submodule, which makes it easy to update w/ a shell script.)

titaniumbones avatar Mar 17 '20 23:03 titaniumbones

Awesome @titaniumbones.

I'm not sure if you can test the action locally (I don't have too much experience with actions either)

But you could change action.js and test it in your repo in every pull by changing https://github.com/pomber/covid19/blob/a4873cb40130b1aed596bb4e2c39bc9a234c34dc/.github/workflows/main.yml#L1-L3 to

on: [push]

If it works, send de PR and I'll merge it.

pomber avatar Mar 18 '20 14:03 pomber

I think I was able to do this in #13 :-/ -- anyway, actions seem to work. on my repo. Also possible to test by running GITHUB_WORKSPACE=somedir after adding the relevant files into somedir/data and somedir/main

titaniumbones avatar Mar 18 '20 18:03 titaniumbones

great work...have provinces been added yet?

jparish3 avatar Mar 18 '20 21:03 jparish3

Any updates on this? Working on a tracker that I'd really love to be able to support state/provinces as well.

Not-Jayden avatar Mar 23 '20 07:03 Not-Jayden

There are some new changes coming to the source repo (#37). I would need to change how the data is fetched so I'll add provinces then (in a different json).

pomber avatar Mar 23 '20 13:03 pomber

would be nice if the countries could be mapped to their ISO 2 or 3 code, which in turn can be mapped to lon/lat. There are several nodejs libs available that have all the information required. (and perhaps even a proper ISO date format and deaths today property)

bakman2 avatar Mar 23 '20 15:03 bakman2

Would really like state/province level info. Thank you for your work on this so far!

izaius avatar Mar 25 '20 01:03 izaius

Long story short, the JHU data is a complete mess, particularly in the daily series, there are key issues in multiple places.

I was working on a pull request for this repo, but required too many hacks to make the API data consistent.

Anyway, I made an API for US state data available here: https://github.com/energee/covid19-us-api based on NY time's csv. Hopefully its helpful!

energee avatar Mar 30 '20 23:03 energee

Taking the idea from this project, I made available COVID-19 data in GeoJSON format. Repo URL: https://github.com/jsanjay63/covid19-geoextractor

Sample Data available: https://jsanjay63.github.io/covid19-geoextractor/output/covid19_time_series.geojson

Map Visualization: https://studio.here.com/viewer/?project_id=fc72e094-6ade-4c2f-8e9c-ecf902b36709

Feel free to give feedback or contribute. A small contribution to fight COVID :)

jsanjay63 avatar Apr 25 '20 10:04 jsanjay63