# 進階服務 (https://nolantw.github.io/tdx/reference/advanced/)

## `Advanced`

### `bus_stops`

```python
def bus_stops(
    position: Position,
    *,
    radius: float = 500,
    query: Query[BusStop] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusStop]
```

取得座標 `radius` 公尺內（上限 1000）的公車站牌。

### `bus_stations`

```python
def bus_stations(
    position: Position,
    *,
    radius: float = 500,
    query: Query[BusStation] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusStation]
```

取得座標 `radius` 公尺內（上限 1000）的公車站位。

### `bus_routes`

```python
def bus_routes(
    position: Position,
    *,
    radius: float = 500,
    query: Query[BusRoute] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusRoute]
```

取得座標 `radius` 公尺內（上限 1000）的公車路線。

### `bus_arrivals`

```python
def bus_arrivals(
    position: Position,
    *,
    radius: float = 500,
    query: Query[BusArrival] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusArrival]
```

取得座標 `radius` 公尺內（上限 1000）的公車到站預估。

### `bus_vehicle_positions`

```python
def bus_vehicle_positions(
    position: Position,
    *,
    radius: float = 500,
    query: Query[BusVehiclePosition] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusVehiclePosition]
```

取得座標 `radius` 公尺內（上限 1000）的公車位置。

### `bus_stop_events`

```python
def bus_stop_events(
    position: Position,
    *,
    radius: float = 500,
    query: Query[BusStopEvent] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusStopEvent]
```

取得座標 `radius` 公尺內（上限 1000）的公車到離站動態。

### `metro_stations`

```python
def metro_stations(
    position: Position,
    *,
    radius: float = 500,
    query: Query[RailStation] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[RailStation]
```

取得座標 `radius` 公尺內（上限 1000）的捷運車站。

### `bike_stations`

```python
def bike_stations(
    position: Position,
    *,
    radius: float = 500,
    query: Query[BikeStation] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BikeStation]
```

取得座標 `radius` 公尺內（上限 1000）的自行車站。

### `bike_availability`

```python
def bike_availability(
    position: Position,
    *,
    radius: float = 500,
    query: Query[BikeAvailability] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BikeAvailability]
```

取得座標 `radius` 公尺內（上限 1000）的自行車即時數量。

### `car_parks`

```python
def car_parks(
    position: Position,
    *,
    radius: float = 500,
    query: Query[CarPark] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[CarPark]
```

取得座標 `radius` 公尺內（上限 1000）的路外停車場。

### `street_spots`

```python
def street_spots(
    position: Position,
    *,
    radius: float = 500,
    query: Query[StreetParkingSpot] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[StreetParkingSpot]
```

取得座標 `radius` 公尺內（上限 1000）的路邊停車格。

### `detectors`

```python
def detectors(
    position: Position,
    *,
    radius: float = 500,
    query: Query[VehicleDetector] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[VehicleDetector]
```

取得座標 `radius` 公尺內（上限 1000）的車輛偵測器。

### `message_signs`

```python
def message_signs(
    position: Position,
    *,
    radius: float = 500,
    query: Query[MessageSign] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[MessageSign]
```

取得座標 `radius` 公尺內（上限 1000）的資訊可變標誌。

### `cameras`

```python
def cameras(
    position: Position,
    *,
    radius: float = 500,
    query: Query[TrafficCamera] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[TrafficCamera]
```

取得座標 `radius` 公尺內（上限 1000）的路況攝影機。

### `etag_gantries`

```python
def etag_gantries(
    position: Position,
    *,
    radius: float = 500,
    query: Query[ETagGantry] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[ETagGantry]
```

取得座標 `radius` 公尺內（上限 1000）的eTag 偵測站。

### `station_stops`

```python
def station_stops(
    city: City | str | None,
    station_id: str,
    *,
    query: Query[BusStop] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusStop]
```

取得行經公車站位的站牌，縣市傳入 `None` 則為公路客運站位。

### `station_routes`

```python
def station_routes(
    city: City | str | None,
    station_id: str,
    *,
    query: Query[BusRoute] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusRoute]
```

取得行經公車站位的路線，縣市傳入 `None` 則為公路客運站位。

### `station_route_stops`

```python
def station_route_stops(
    city: City | str | None,
    station_id: str,
    *,
    query: Query[BusRouteStops] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusRouteStops]
```

取得行經公車站位的路線站序，縣市傳入 `None` 則為公路客運站位。

### `station_schedules`

```python
def station_schedules(
    city: City | str | None,
    station_id: str,
    *,
    query: Query[BusSchedule] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusSchedule]
```

取得行經公車站位的路線班表，縣市傳入 `None` 則為公路客運站位。

### `station_shapes`

```python
def station_shapes(
    city: City | str | None,
    station_id: str,
    *,
    query: Query[BusShape] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusShape]
```

取得行經公車站位的路線線型，縣市傳入 `None` 則為公路客運站位。

### `station_arrivals`

```python
def station_arrivals(
    city: City | str | None,
    station_id: str,
    *,
    query: Query[BusArrival] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusArrival]
```

取得行經公車站位的到站預估，縣市傳入 `None` 則為公路客運站位。

### `station_vehicle_positions`

```python
def station_vehicle_positions(
    city: City | str | None,
    station_id: str,
    *,
    query: Query[BusVehiclePosition] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusVehiclePosition]
```

取得行經公車站位的路線車輛位置，縣市傳入 `None` 則為公路客運站位。

### `station_stop_events`

```python
def station_stop_events(
    city: City | str | None,
    station_id: str,
    *,
    query: Query[BusStopEvent] | QueryParams | None = None,
    limit: int | None = None,
    offset: int = 0,
    cache_ttl: float | None = None,
) -> Records[BusStopEvent]
```

取得行經公車站位的到離站動態，縣市傳入 `None` 則為公路客運站位。