covidatlas / li

Next-generation serverless crawler for COVID-19 data
Apache License 2.0
57 stars 33 forks source link

Extend JHU stateMap with more islands #412

Closed jzohrab closed 4 years ago

jzohrab commented 4 years ago

Original issue https://github.com/covidatlas/coronadatascraper/issues/693, transferred here on Monday Apr 06, 2020 at 16:29 GMT


The official JHU ISO mapping file didn't contain the right ISO codes for some islands.

These are the following:

Anguilla needs to be added to stateMap
Aruba needs to be added to stateMap
Bermuda needs to be added to stateMap
Bonaire, Sint Eustatius and Saba needs to be added added to stateMap
British Virgin Islands needs to be added to stateMap
Cayman Islands needs to be added to stateMap
Channel Islands needs to be added added to stateMap
Curacao needs to be added to stateMap
Diamond Princess needs to be added added to stateMap
Falkland Islands (Malvinas) needs to be added to stateMap
Faroe Islands needs to be added to stateMap
French Guiana needs to be added to stateMap
French Polynesia needs to be added to stateMap
Gibraltar needs to be added to stateMap
Grand Princess needs to be added added to stateMap
Guadeloupe needs to be added to stateMap
Isle of Man needs to be added to stateMap
Martinique needs to be added to stateMap
Mayotte needs to be added to stateMap
Montserrat needs to be added to stateMap
New Caledonia needs to be added to stateMap
Recovered needs to be added added to stateMap
Reunion needs to be added to stateMap
Saint Barthelemy needs to be added to stateMap
Saint Pierre and Miquelon needs to be added to stateMap
Sint Maarten needs to be added to stateMap
St Martin needs to be added to stateMap
Turks and Caicos Islands needs to be added to stateMap

You can get this output by running yarn start -l JHU.

Task:

  1. Look up the iso codes for the above islands from this list: https://github.com/hyperknot/country-levels/blob/master/docs/iso1_list.md
  2. Add them to the stateMap here: https://github.com/covidatlas/coronadatascraper/blob/fbc0414eece55acb2fa6926d9d8cd051baac4877/src/shared/scrapers/JHU.js#L9-L13

For combined areas like Channel Islands write it as a list of strings. Like ['JE', 'GG']

For ships, like Diamond Princess, put -.