QPESUMS
中央氣象署 QPESUMS 降水產品的圖磚。官方 App 中這個圖層標示為「未來 1 小時降水預報」。
共通規則(座標、快取、資料來源標示、地圖範例)見 圖磚概要。
建議標示資料來源:中央氣象署 QPESUMS、ExpTech Studio(exptech.dev)
上游條款
- 中央氣象署:另須遵守中央氣象署的資料使用規範(例如政府資料開放授權條款);氣象與地震資訊以中央氣象署發布的內容為準。
標示位置、範例與商業使用申請見資料授權與來源標示。
目前不需要 API Token。
取得可用時間
Section titled “取得可用時間”curl "https://api.core-tnn1.exptech.dev/api/v2/tiles/qpesums/list"const res = await fetch("https://api.core-tnn1.exptech.dev/api/v2/tiles/qpesums/list");if (!res.ok) throw new Error(`HTTP ${res.status}`);const data = await res.json();console.log(data);import requests
res = requests.get( "https://api.core-tnn1.exptech.dev/api/v2/tiles/qpesums/list", timeout=10,)res.raise_for_status()print(res.json())試試看
官方 App 目前把回應當成與雷達回波相同的 delta 編碼時間列表解析:[最舊時間, 差值, 差值, …],單位 Unix 秒,由舊到新(還原方式見圖磚概要)。
路徑參數
time列表中的時間。
z縮放層級(範圍未公開)。
xXYZ 圖磚欄號。
yXYZ 圖磚列號(由北往南)。
curl -o output.webp "https://static.core-tnn1.exptech.dev/api/v2/tiles/qpesums/<time>/<z>/<x>/<y>.webp"const res = await fetch("https://static.core-tnn1.exptech.dev/api/v2/tiles/qpesums/<time>/<z>/<x>/<y>.webp");if (!res.ok) throw new Error(`HTTP ${res.status}`);const blob = await res.blob();import requests
res = requests.get( "https://static.core-tnn1.exptech.dev/api/v2/tiles/qpesums/<time>/<z>/<x>/<y>.webp", timeout=10,)res.raise_for_status()with open("output.webp", "wb") as f: f.write(res.content)試試看
圖磚都在 /api/v2/tiles/qpesums/ 之下。上面的 {time}/{z}/{x}/{y}.webp 是官方 App 目前的用法。
- 列表新資料最多延遲約 1 秒出現;圖磚網址的內容固定,404 的結果會保留約 5 秒。
- 請只使用列表裡的時間。不存在時間的回應方式未公開。
- 縮放範圍、圖磚尺寸、色階與單位目前沒有正式規格。
- 圖上請依資料授權的建議標示註明來源。
