{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/geoapify/json-schema/geoapify-timezone-result-schema.json",
  "title": "TimezoneResult",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/geoapify-timezone-api-openapi.yml#/components/schemas/TimezoneResult",
  "type": "object",
  "required": [
    "lat",
    "lon",
    "at",
    "tzdb_version",
    "timezones"
  ],
  "properties": {
    "lat": {
      "type": "number"
    },
    "lon": {
      "type": "number"
    },
    "at": {
      "type": "string",
      "format": "date-time"
    },
    "tzdb_version": {
      "type": "string"
    },
    "timezones": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Timezone"
      }
    }
  },
  "$defs": {
    "Timezone": {
      "allOf": [
        {
          "$ref": "#/$defs/TimezoneState"
        },
        {
          "type": "object",
          "required": [
            "name",
            "local_time",
            "next_transition"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "local_time": {
              "type": "string",
              "format": "date-time"
            },
            "next_transition": {
              "description": "Next known transition after at, or null if none is known within the bundled range.",
              "anyOf": [
                {
                  "$ref": "#/$defs/Transition"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        }
      ]
    },
    "TimezoneState": {
      "type": "object",
      "required": [
        "type",
        "utc_offset",
        "offset_seconds",
        "abbreviation"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "standard",
            "daylightSaving",
            "other"
          ]
        },
        "utc_offset": {
          "type": "string"
        },
        "offset_seconds": {
          "type": "integer"
        },
        "abbreviation": {
          "type": "string"
        }
      }
    },
    "Transition": {
      "type": "object",
      "required": [
        "at",
        "before",
        "after",
        "offset_change_seconds",
        "kind"
      ],
      "properties": {
        "at": {
          "type": "string",
          "format": "date-time"
        },
        "before": {
          "$ref": "#/$defs/TimezoneState"
        },
        "after": {
          "$ref": "#/$defs/TimezoneState"
        },
        "offset_change_seconds": {
          "type": "integer"
        },
        "kind": {
          "type": "string",
          "enum": [
            "daylight-start",
            "daylight-end",
            "offset-change",
            "designation-change"
          ]
        }
      }
    }
  }
}