跳至內容
tdx-tw
使用指南

航運

查詢港口、航線、船班、票價、船位與到離港看板。

for route in client.ship.routes(limit=20):
    print(route.name, route.start_port_name, route.end_port_name)

for board in client.ship.live_boards(city="Kaohsiung"):
    print(board.port_name, board.departures, board.arrivals)

航線可用縣市或 route_type 篩選:

route_type航線
Internal境內航線
OutlyingIslands離島航線
Bilateral兩岸航線
MiniThreeLinks小三通航線
Other其他
類別方法
基本資料ports、operators、vessels、authorities
航線與班表routes、route_stops、daily_schedules、recurring_schedules、special_schedules
票價與座位fares、fares_between、seat_availability
動態live_boards、live_positions、alerts、news

所有參數與欄位見航運 API。