{
  "$id": "https://schema.nfh.global/OccupancyStatus/v2.0",
  "x-iri": "https://schema.nfh.global/OccupancyStatus/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "OccupancyStatus",
  "type": "object",
  "description": "An indicator of the current passenger load level of a vehicle, such as empty, many seats available, or full.",
  "properties": {
    "occupancyLevel": {
      "description": "Occupancy level (EMPTY, MANY_SEATS_AVAILABLE, FEW_SEATS_AVAILABLE, STANDING_ROOM_ONLY, FULL, NOT_ACCEPTING_PASSENGERS)",
      "type": "string"
    },
    "availableSeats": {
      "description": "Estimated number of seats currently available",
      "type": "number"
    },
    "totalSeats": {
      "description": "Total seating capacity of the vehicle",
      "type": "number"
    },
    "id": {
      "description": "Unique identifier for the state",
      "type": "string"
    },
    "descriptor": {
      "description": "Human-readable description of the state",
      "$ref": "https://schema.nfh.global/Descriptor/v2.1/schema.json"
    },
    "updatedAt": {
      "description": "Timestamp when the state was last updated",
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "schema-org",
    "ride-hailing"
  ]
}
