coronaflight-hkg
and its generated data are now deprecated and will no longer be maintained nor updated. Due to the evolving nature of the COVID-19 pandemic and the changes in travel restrictions and regulations, we are unable to provide accurate and up-to-date information for the Hong Kong region.
We understand that this repository has been a valuable resource for you, and we apologise for any inconvenience caused by this deprecation. However, we believe that it is important to prioritize the accuracy and reliability of the information we provide.
We encourage you to seek out alternative sources for information on travel restrictions and regulations in the Hong Kong region. We also recommend that you follow official government and health organization guidelines for COVID-19 prevention and safety.
Thank you for your understanding and support.
Sincerely,
John Law (@poyea)
coronaflight-hkg
is the backend for coronaflight.json
, i.e. gist 8ce06b31763379e2084cb2022b88b79a, that is updated continuously. This goes to Centre for Health Protection in Hong Kong and transforms the "dangerous" flights to JSON for future analysis/reporting. A sister gist that contains unique history, coronaflight-history.json
, for the data is also maintained, i.e. gist fa1f2988c4f424d3e42b9284e751663f. From the official description, the official piece of data is visible for only 14 days.
To run locally,
git clone https://github.com/poyea/coronaflight-hkg.git
Then,
npm install
npm run crawl
Go and see your files in out/dump
for dump and out/json
for output. Respective latest files are in latest.*
in the two folders. Have fun and stay safe!
To clean your local raw data and obsolete references,
npm run clean
In the output, there are two different types of geographical data. Since CHP used path to indicate the departure cities before, some of the data in history contains only path. When they switched to the current approach, only departure cities are recorded. Readers should assume that the destination city is always Hong Kong for those entries with departure
.
- Star
- Fork
- Contribute
File an issue immediately if you find a bug. If you know how to fix it, feel free to open a pull request. Before commiting, you should
npm run lintfix
As said, data are from Centre for Health Protection, Hong Kong Government.
The owner owns the code, but not any entry of the data. Please use the data at your own discretion and always refer to CHP's offical document for fact.
MIT