← 地理与天气

海洋预报

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.02,
        null,
        null,
        null,
        null
      ],
      "time": [
        "2026-08-12",
        "2026-08-13",
        "2026-08-14",
        "2026-08-15",
        "2026-08-16",
        "2026-08-17",
        "2026-08-18"
      ],
      "wave_direction_dominant": [
        186,
        165,
        168,
        null,
        null,
        null,
        null
      ],
      "wave_height_max": [
        0.2,
        0.16,
        0.18,
        null,
        null,
        null,
        null
      ],
      "wave_period_max": [
        1.7,
        1.8,
        1.85,
        null,
        null,
        null,
        null
      ],
      "wind_wave_height_max": [
        0.2,
        0.16,
        0.2,
        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.5575418472290039,
    "latitude": 60.0,
    "longitude": 10.75,
    "timezone": "Europe/Oslo",
    "timezone_abbreviation": "GMT+2",
    "utc_offset_seconds": 7200
  },
  "success": true
}