# 海嘯 (https://nolantw.github.io/cwa/guides/tsunamis/)

`cwa.tsunamis.recent()` 由新到舊回傳海嘯報告，`latest()` 只回傳最新一筆。

```python
import cwa

report = cwa.tsunamis.latest()
if report is not None:
    print(report.report, report.issued_at, report.earthquake.magnitude)
    for area in report.areas:
        print(area.name, area.arrival_at, area.wave_height)
```

`recent(limit=20)` 的 `limit` 為正整數。沒有報告時，`recent()` 回傳空的 tuple，`latest()` 回傳 `None`。

## 欄位

| 欄位 | 說明 |
| --- | --- |
| `number`、`report`、`type` | 編號、報告內容與報告種類 |
| `issued_at`、`expires_at` | 發布與失效時間 |
| `earthquake` | 引發海嘯的地震：時間、位置、深度（km）與規模 |
| `areas` | 沿海地區的預估或實測到達時間與波高 |
| `stations` | 潮位站的預估或實測海嘯波 |