{
  "$id": "https://schema.nfh.global/VehicleJourney/v2.0",
  "x-iri": "https://schema.nfh.global/VehicleJourney/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "VehicleJourney",
  "type": "object",
  "description": "A specific operational instance of a vehicle traveling a defined route at a scheduled time on a given service day.",
  "properties": {
    "vehicleJourneyCode": {
      "description": "Unique code for this vehicle journey",
      "type": "string"
    },
    "routeRef": {
      "description": "Reference to the route being served",
      "$ref": "https://schema.nfh.global/Route/v2.0/schema.json"
    },
    "serviceCalendarRef": {
      "description": "Calendar defining when this journey operates",
      "$ref": "https://schema.nfh.global/ServiceCalendar/v2.0/schema.json"
    },
    "vehicleRef": {
      "description": "Vehicle assigned to this journey",
      "$ref": "https://schema.nfh.global/Vehicle/v2.0/schema.json"
    },
    "patternRef": {
      "description": "Journey pattern being followed",
      "$ref": "https://schema.nfh.global/Pattern/v2.0/schema.json"
    },
    "stopTimes": {
      "description": "Scheduled stop times for each stop on this journey",
      "$ref": "https://schema.nfh.global/StopTime/v2.0/schema.json"
    },
    "id": {
      "description": "Unique identifier for the fulfillment",
      "type": "string"
    },
    "type": {
      "description": "Type of fulfillment (extensible term)",
      "type": "string"
    },
    "agent": {
      "description": "The entity responsible for performing the fulfillment",
      "$ref": "https://schema.nfh.global/FulfillmentAgent/v2.0/schema.json"
    },
    "mode": {
      "description": "Mode of fulfillment",
      "$ref": "https://schema.nfh.global/FulfillmentMode/v2.0/schema.json"
    },
    "participants": {
      "description": "Participants entitled to receive this fulfillment",
      "$ref": "https://schema.nfh.global/Participant/v2.0/schema.json"
    },
    "stages": {
      "description": "Stages in the fulfillment lifecycle",
      "$ref": "https://schema.nfh.global/FulfillmentStage/v2.0/schema.json"
    },
    "instructions": {
      "description": "Instructions for fulfillment",
      "$ref": "https://schema.nfh.global/Descriptor/v2.1/schema.json"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "transmodel-netex",
    "ride-hailing"
  ]
}
