{
  "$id": "https://schema.nfh.global/StopMonitoring/v2.0",
  "x-iri": "https://schema.nfh.global/StopMonitoring/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "StopMonitoring",
  "type": "object",
  "description": "A real-time data service providing predicted arrivals and departures of vehicles at a specific stop.",
  "properties": {
    "stopRef": {
      "description": "Reference to the stop being monitored",
      "$ref": "https://schema.nfh.global/Stop/v2.0/schema.json"
    },
    "monitoredCalls": {
      "description": "List of real-time arrival/departure calls at this stop",
      "$ref": "https://schema.nfh.global/MonitoredCall/v2.0/schema.json"
    },
    "responseTimestamp": {
      "description": "Timestamp of this stop monitoring response",
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "description": "Unique identifier for the tracking record",
      "type": "string"
    },
    "url": {
      "description": "URL endpoint for real-time tracking information",
      "type": "string",
      "format": "uri"
    },
    "status": {
      "description": "Current tracking status",
      "$ref": "https://schema.nfh.global/State/v2.0/schema.json"
    },
    "validity": {
      "description": "Validity period for this tracking record",
      "$ref": "https://schema.nfh.global/TimePeriod/v2.1/schema.json"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "ride-hailing"
  ]
}
