# 航運 (https://nolantw.github.io/tdx/guides/ship/)

```python
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](/reference/ship)。