{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/digitraffic-fi/json-schema/digitraffic-fi-train-location-schema.json",
  "title": "TrainLocation",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/digitraffic-fi-train-locations-api-openapi.yml#/components/schemas/TrainLocation",
  "type": "object",
  "properties": {
    "trainNumber": {
      "type": "integer",
      "format": "int64"
    },
    "departureDate": {
      "type": "string",
      "format": "date"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "SwaggerPoint": {
      "$ref": "#/$defs/SwaggerPoint"
    },
    "speed": {
      "type": "integer",
      "format": "int32"
    },
    "accuracy": {
      "type": "integer",
      "format": "int32"
    },
    "isGpsLocation": {
      "type": "boolean"
    }
  },
  "$defs": {
    "SwaggerPoint": {
      "title": "SwaggerPoint",
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "coordinates": {
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          }
        }
      }
    }
  }
}