{
  "$id": "https://schema.nfh.global/StopTime/v2.0",
  "x-iri": "https://schema.nfh.global/StopTime/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "StopTime",
  "type": "object",
  "description": "The scheduled arrival and departure times for a vehicle at a specific stop within a vehicle journey.",
  "properties": {
    "arrivalTime": {
      "description": "Scheduled arrival time in HH:MM:SS format",
      "type": "string"
    },
    "departureTime": {
      "description": "Scheduled departure time in HH:MM:SS format",
      "type": "string"
    },
    "stopSequence": {
      "description": "Order of this stop within the vehicle journey",
      "type": "number"
    },
    "stopRef": {
      "description": "Reference to the stop for this stop time",
      "$ref": "https://schema.nfh.global/Stop/v2.0/schema.json"
    },
    "pickupType": {
      "description": "How passengers board at this stop (0=regular, 1=no_pickup, 2=phone_agency, 3=coordinate_with_driver)",
      "type": "string"
    },
    "dropOffType": {
      "description": "How passengers alight at this stop (0=regular, 1=no_drop_off, 2=phone_agency, 3=coordinate_with_driver)",
      "type": "string"
    },
    "distanceTraveled": {
      "description": "Distance from the route origin to this stop in metres",
      "type": "number"
    },
    "startDate": {
      "description": "Start date and time of the period",
      "type": "string",
      "format": "date-time"
    },
    "endDate": {
      "description": "End date and time of the period",
      "type": "string",
      "format": "date-time"
    },
    "startTime": {
      "description": "Start time of day in HH:MM:SS format",
      "type": "string"
    },
    "endTime": {
      "description": "End time of day in HH:MM:SS format",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "transmodel-netex",
    "ride-hailing"
  ]
}
