{
  "$id": "https://schema.nfh.global/PassengerCount/v2.0",
  "x-iri": "https://schema.nfh.global/PassengerCount/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "PassengerCount",
  "type": "object",
  "description": "The measured number of passengers currently aboard a vehicle, used for real-time capacity and load management.",
  "properties": {
    "boardingCount": {
      "description": "Number of passengers who boarded at the last stop",
      "type": "number"
    },
    "alightingCount": {
      "description": "Number of passengers who alighted at the last stop",
      "type": "number"
    },
    "currentOccupancy": {
      "description": "Total number of passengers currently on board",
      "type": "number"
    },
    "unitCode": {
      "description": "Unit of measure code (UN/ECE Rec 20)",
      "type": "string"
    },
    "value": {
      "description": "Numeric quantity value",
      "type": "number"
    },
    "maximum": {
      "description": "Maximum allowed quantity",
      "type": "number"
    },
    "minimum": {
      "description": "Minimum required quantity",
      "type": "number"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "ride-hailing"
  ]
}
