← 地理与天气

海洋预报

GET /marine/forecast

获取多天海洋天气预报,含逐小时波高、波向、波周期和涌浪预测。最多可配置 7 天。适用于规划航行路线、安排海上作业、安排冲浪时间和构建海洋安全预警系统。数据来自 Open-Meteo 海洋预报模型。

参数

lat 必填

Latitude

lon 必填

Longitude

days 可选 默认: 7

Days

请求示例

基本用法
curl "https://nordapi.ee/api/v1/marine/forecast?lat=59.9&lon=10.7"
7-day marine forecast for Oslo Fjord
curl "https://nordapi.ee/api/v1/marine/forecast?lat=59.9&lon=10.7"
3-day surf forecast for Bali
curl "https://nordapi.ee/api/v1/marine/forecast?lat=-8.72&lon=115.17&days=3"
5-day forecast for North Sea
curl "https://nordapi.ee/api/v1/marine/forecast?lat=56.0&lon=3.0&days=5"

实时响应

{
  "data": {
    "daily": {
      "swell_wave_height_max": [
        0.02,
        0.02,
        0.0,
        null,
        null,
        null,
        null
      ],
      "time": [
        "2026-05-22",
        "2026-05-23",
        "2026-05-24",
        "2026-05-25",
        "2026-05-26",
        "2026-05-27",
        "2026-05-28"
      ],
      "wave_direction_dominant": [
        190,
        206,
        277,
        null,
        null,
        null,
        null
      ],
      "wave_height_max": [
        0.16,
        0.34,
        0.22,
        null,
        null,
        null,
        null
      ],
      "wave_period_max": [
        1.7,
        2.25,
        2.0,
        null,
        null,
        null,
        null
      ],
      "wind_wave_height_max": [
        0.16,
        0.34,
        0.22,
        null,
        null,
        null,
        null
      ]
    },
    "daily_units": {
      "swell_wave_height_max": "m",
      "time": "iso8601",
      "wave_direction_dominant": "°",
      "wave_height_max": "m",
      "wave_period_max": "s",
      "wind_wave_height_max": "m"
    },
    "elevation": 0.0,
    "generationtime_ms": 0.3129243850708008,
    "latitude": 59.875008,
    "longitude": 10.7083435,
    "timezone": "Europe/Oslo",
    "timezone_abbreviation": "GMT+2",
    "utc_offset_seconds": 7200
  },
  "success": true
}