Skip to content

Instantly share code, notes, and snippets.

@MrNegativeTW
Last active December 11, 2020 02:20
Show Gist options
  • Save MrNegativeTW/fce249a2232953d22320b7f7daaecf06 to your computer and use it in GitHub Desktop.
Save MrNegativeTW/fce249a2232953d22320b7f7daaecf06 to your computer and use it in GitHub Desktop.
台灣道路即時影像來源 CCTV

地圖查詢

公路總局 - 智慧化省道即時資訊服務網


資料來源

可從 Developer Console 中 Network 面板取得 API 路徑

省道即時影像

使用 resolution 可統一固定影像大小,有些影像畫質本身比較好,用這個會限縮畫質,需留意

https://thbapp.thb.gov.tw/services/cctv/thb

{
  "id": "CCTV-32-0240-015-01",
  "stakenumber": "台24線15K+800",
  "gisx": 120.6082548,
  "gisy": 22.7224573,
  "html": "https://thbcctv13.thb.gov.tw/T24-15K+800?resolution=CIF_352X288"
}

縣市即時影像

https://thbapp.thb.gov.tw/services/cctv/county

{
  "id": "T000003",
  "stakenumber": "台2線",
  "gisx": 121.76054,
  "gisy": 25.1419,
  "html": "https://CCTV.KLCG.GOV.TW:443/41b0eff2"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment