{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/geoapify/json-schema/geoapify-timezone-transitions-result-schema.json",
  "title": "TimezoneTransitionsResult",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/geoapify-timezone-api-openapi.yml#/components/schemas/TimezoneTransitionsResult",
  "type": "object",
  "required": [
    "lat",
    "lon",
    "from",
    "to",
    "tzdb_version",
    "timezones"
  ],
  "properties": {
    "lat": {
      "type": "number"
    },
    "lon": {
      "type": "number"
    },
    "from": {
      "type": "string",
      "format": "date-time"
    },
    "to": {
      "type": "string",
      "format": "date-time"
    },
    "tzdb_version": {
      "type": "string"
    },
    "timezones": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "transitions"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "transitions": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/Transition"
            }
          }
        }
      }
    }
  },
  "$defs": {
    "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"
          ]
        }
      }
    }
  }
}