During the COVID-19 pandemic in early 2020, Taiwan faced a critical shortage of facial masks. To ensure fair distribution, the government implemented a name-based rationing system on February 6, 2020. The system controlled mask distribution through pharmacies and health centers while providing real-time inventory data.
This project creates an interactive map that helps people:
- Find nearby pharmacies with mask stocks
- Check real-time mask inventory levels
- View pharmacy operating hours and contact information
- Get custom notices from pharmacies
- Navigate to their chosen pharmacy
The data currently used includes:
- NHI Contracted Medical Institutions - Pharmacies
- NHI Contracted Medical Institutions - Clinics - Health Centers
- Fixed Service Schedule of NHI Contracted Institutions
- Mask Stock Details of NHI Contracted Institutions
Based on the above data, combined with TGOS National Address Positioning Service to obtain corresponding geographic coordinates, cities, districts, and villages.
Due to pharmacy feedback requesting custom notes in the data, a Google Form was designed to collect data, which is periodically updated to raw/custom_notices.csv
Some geographic coordinates were searched using National Land Surveying and Mapping Center, and corrections provided by @lanma were also incorporated.
For related applications and information, please refer to Mask Supply and Demand Information Platform
- Pharmacy Mask Map Launch
- Pharmacy Mask Map Post-Launch Notes
- Search Function Added to Pharmacy Mask Map
Cron schedule
* 07-22 * * * /usr/bin/php -q /home/kiang/github/pharmacies/scripts/cron.php
因應 2020 年初 COVID-19 疫情期間口罩短缺,台灣政府於 2020 年 2 月 6 日實施口罩實名制。為協助民眾即時查詢哪裡有口罩可以購買,本計畫整合了政府提供的開放資料,建置了這個互動式地圖,提供以下功能:
- 快速找出附近有口罩存貨的藥局
- 即時查看口罩庫存數量
- 顯示藥局營業時間與聯絡資訊
- 提供藥局的重要提醒訊息
- 導航至所選藥局位置
目前使用到的資料如下:
以上述資料為基礎,搭配 TGOS 全國門牌地址定位服務 取得對應的地理座標、縣市、鄉鎮市區與村里等欄位
後續因為藥局回饋希望在資料加入自訂備註,因此設計了一個 Google表單 蒐集資料,內容會不定期更新到 raw/custom_notices.csv
部份資料的地理座標使用了 國土測繪圖資服務雲 進行檢索,同時也併入了來自 @lanma 提供的修正
相關應用與說明可以參考 口罩供需資訊平台
系統排程
* 07-22 * * * /usr/bin/php -q /home/kiang/github/pharmacies/scripts/cron.php