← Geo & väder

Tidszonsuppslag

GET /geo/timezone

Look up timezone information by geographic koordinater or timezone namn. Returnerar the timezone identifier (e.g., Europe/Oslo), aktuell lokal time, UTC offset, and DST status. Användbart för att schemalägga appar som behöver to visa times in a användare's lokal timezone, meeting planners över tidszons, and valfri funktion som converts between UTC and lokal time.

Parametrar

lat valfri

Latitude

lon valfri

Longitude

zone valfri

Timezone name

Exempelförfrågningar

Grundläggande användning
curl "https://nordapi.ee/api/v1/geo/timezone?lat=59.9&lon=10.7"
Timezone for Oslo by coordinates
curl "https://nordapi.ee/api/v1/geo/timezone?lat=59.9&lon=10.7"
Timezone by name
curl "https://nordapi.ee/api/v1/geo/timezone?zone=America/New_York"
Timezone for Tokyo by coordinates
curl "https://nordapi.ee/api/v1/geo/timezone?lat=35.68&lon=139.69"

Livesvar

{
  "data": {
    "date": "04/05/2026",
    "datetime": "2026-04-05T19:23:33.6578013",
    "day_of_week": "Sunday",
    "time": "19:23",
    "timezone": "Europe/Oslo",
    "utc_offset": null
  },
  "success": true
}