← Intelligens-mashups

Stedsintelligens

GET /mashup/location

Omfattende stedsprofil: kombinerer vejr, luftkvalitet, højde, lysforurening, nærliggende jordskælv og tidszone i en enkelt stedsrapport.

Parametre

lat påkrævet

Latitude

lon påkrævet

Longitude

Eksempelforespørgsler

Grundlæggende brug
curl "https://nordapi.ee/api/v1/mashup/location?lat=59.4&lon=24.7"

Livesvar

{
  "air_quality": {
    "european_aqi": 31,
    "pm10": 7.7,
    "pm2_5": 5.3,
    "us_aqi": 38
  },
  "light_pollution": {
    "aurora_suitability": "fair",
    "bortle_class": 6
  },
  "location": {
    "latitude": 59.4,
    "longitude": 24.7
  },
  "marine": {
    "current": {
      "interval": 900,
      "swell_wave_direction": 258,
      "swell_wave_height": 0.26,
      "swell_wave_period": 4.65,
      "time": "2026-04-06T00:45",
      "wave_direction": 219,
      "wave_height": 0.52,
      "wave_period": 3.75,
      "wind_wave_height": 0.42
    },
    "current_units": {
      "interval": "seconds",
      "swell_wave_direction": "°",
      "swell_wave_height": "m",
      "swell_wave_period": "s",
      "time": "iso8601",
      "wave_direction": "°",
      "wave_height": "m",
      "wave_period": "s",
      "wind_wave_height": "m"
    },
    "elevation": 30.0,
    "generationtime_ms": 0.27501583099365234,
    "latitude": 59.541664,
    "longitude": 24.708344,
    "timezone": "Europe/Tallinn",
    "timezone_abbreviation": "GMT+3",
    "utc_offset_seconds": 10800
  },
  "scores": {
    "air_quality": 9.0,
    "dark_sky": 5.0,
    "seismic_safety": 10.0,
    "weather_comfort": 4.0
  },
  "seismic": {
    "earthquakes_within_300km": 0,
    "recent": []
  },
  "success": true,
  "sun": {
    "astronomical_twilight_begin": "2026-04-05T00:54:00+00:00",
    "astronomical_twilight_end": "2026-04-05T19:53:49+00:00",
    "civil_twilight_begin": "2026-04-05T02:52:19+00:00",
    "civil_twilight_end": "2026-04-05T17:55:29+00:00",
    "day_length": 49313,
    "nautical_twilight_begin": "2026-04-05T01:58:20+00:00",
    "nautical_twilight_end": "2026-04-05T18:49:29+00:00",
    "solar_noon": "2026-04-05T10:23:54+00:00",
    "sunrise": "2026-04-05T03:32:58+00:00",
    "sunset": "2026-04-05T17:14:51+00:00"
  },
  "timezone": {
    "date": "04/06/2026",
    "datetime": "2026-04-06T00:52:04.0333573",
    "day_of_week": "Monday",
    "time": "00:52",
    "timezone": "Europe/Tallinn",
    "utc_offset": null
  },
  "weather": {
    "current": {
      "cloud_cover": 90,
      "humidity": 87,
      "temperature_c": 5.5,
      "wind_speed_kmh": 21.2
    },
    "forecast_3day": {
      "daily": {
        "precipitation_sum": [
          7.2,
          5.4,
          0.0
        ],
        "temperature_2m_max": [
          5.5,
          5.4,
          5.8
        ],
        "temperature_2m_min": [
          1.7,
          2.1,
          1.5
        ],
        "time": [
          "2026-04-06",
          "2026-04-07",
          "2026-04-08"
        ],
        "weather_code": [
          53,
          55,
          3
        ],
        "wind_speed_10m_max": [
          24.5,
          24.8,
          23.9
        ]
      },
      "daily_units": {
        "precipitation_sum": "mm",
        "temperature_2m_max": "°C",
        "temperature_2m_min": "°C",
        "time": "iso8601",
        "weather_code": "wmo code",
        "wind_speed_10m_max": "km/h"
      },
      "elevation": 30.0,
      "generationtime_ms": 0.10991096496582031,
      "latitude": 59.399193,
      "longitude": 24.691467,
      "timezone": "Europe/Tallinn",
      "timezone_abbreviation": "GMT+3",
      "utc_offset_seconds": 10800
    }
  }
}