# 觀光資訊 (https://nolantw.github.io/tdx/guides/tourism/)

## 台灣好行

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

## 景點與日月潭

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