跳至內容
tdx-tw
使用指南

觀光資訊

查詢台灣好行、景點即時影像與日月潭船班、纜車。

台灣好行

for route in client.tourism.routes():
    print(route)

for arrival in client.tourism.arrivals():
    print(arrival)

方法可傳入路線名稱,省略時取得全部路線:

類別方法
路線routes、route_stops、shapes
班表schedules、daily_timetables、first_last_trips、travel_times
票價fares
動態arrivals、vehicle_positions、stop_events、news

所有參數與欄位見觀光資訊 API。

景點與日月潭

for camera in client.attractions.cameras():
    print(camera.location, camera.live_url)
方法內容
cameras景點即時影像
lake_ports日月潭碼頭
lake_routes日月潭航線
lake_route_stops日月潭航線靠港順序
lake_ticketing日月潭航線售票資訊
lake_schedules日月潭航線定期班表
ropeway_news日月潭纜車最新消息
ropeway_schedules日月潭纜車首末班車
ropeway_ticketing日月潭纜車售票資訊

所有參數與欄位見景點與日月潭 API。