# Stations (https://nolantw.github.io/cwa/en/reference/stations/)

## `stations.get`

```python
def get(station: str) -> Station
def get(station: Sequence[str]) -> Mapping[str, Station]
```

Look up one or more stations by ID.

```python
client.stations.get(station: str) -> Station
client.stations.get(station: Sequence[str]) -> Mapping[str, Station]
await async_client.stations.get(station: str) -> Station
await async_client.stations.get(station: Sequence[str]) -> Mapping[str, Station]
```

## `stations.list`

```python
def list(*, county: County | None = None) -> tuple[Station, ...]
```

List stations, optionally within one county.

```python
client.stations.list(*, county: County | None = None) -> tuple[Station, ...]
await async_client.stations.list(*, county: County | None = None) -> tuple[Station, ...]
```

## `stations.nearest`

```python
def nearest(location: PointInput, *, limit: int = 1, max_distance_km: float | None = None) -> tuple[NearbyStation, ...]
```

Find stations closest to a township or coordinate.

```python
client.stations.nearest(location: PointInput, *, limit: int = 1, max_distance_km: float | None = None) -> tuple[NearbyStation, ...]
await async_client.stations.nearest(location: PointInput, *, limit: int = 1, max_distance_km: float | None = None) -> tuple[NearbyStation, ...]
```

## `NearbyStation`

```python
station: Station
distance_km: float
```

A station and its horizontal WGS84 distance in kilometres.

## `Station`

```python
id: str
name: str
coordinates: Coordinates
source: Source
county: County | None
township: Township | None
elevation_m: float | None
```

A station from CWA's current observation feed.