{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/entur/main/json-schema/entur-zonal-stop-place-distance-request-schema.json",
  "title": "ZonalStopPlaceDistanceRequest",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/entur-prdudisapi-openapi.yml#/components/schemas/ZonalStopPlaceDistanceRequest",
  "required": [
    "stopPlaces"
  ],
  "type": "object",
  "properties": {
    "stopPlaces": {
      "minItems": 1,
      "type": "array",
      "description": "Ordered list of stop place IDs (first is origin, last is destination, any in between are via-points) the path must pass through. If needed the list can also contain Zones",
      "items": {
        "type": "string",
        "description": "Ordered list of stop place IDs (first is origin, last is destination, any in between are via-points) the path must pass through. If needed the list can also contain Zones"
      }
    },
    "organisationId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "codespaces": {
      "maxLength": 3,
      "minLength": 3,
      "type": [
        "string",
        "null"
      ]
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "preOwned": {
      "uniqueItems": true,
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    }
  }
}