Expand the utility
amazingandyyy opened this issue · 1 comments
amazingandyyy commented
TL;DR;
Suggest to rename the repo name and change data path under docs to follow ISO standard.
1. Rename repo name to covid19-data
2. Change path under docs
The structure can be formatted to be
https://amazingshellyyy.com/covid19-data/<country-code>-<subdivisions-code>/<data-type>.json
Specifications
< country-code>
- follow ISO 3166 Standard Country Codes
- Example: United States is
US
, Taiwan isTW
, United Kindom isGB
< subdivisions-code>
- follow
ISO 3166 — Codes for the representation of names of countries and their subdivisions - Example: California of United States is
US-CA
, New York of United States isUS-NY
< data-type>
- can be timeseries or current, can be expanded
amazingandyyy commented
Here is the example, to get time-series data of each county of California of US, the endpoint is
https://amazingshellyyy.com/covid19-data/US-CA/counties/timeseries.json
Another example, to get current data of each city of Taipei of Taiwan, the endpoint is
https://amazingshellyyy.com/covid19-data/TW-TPE/counties/current.json