{
  "$id": "https://schema.nfh.global/TripDescriptor/v2.0",
  "x-iri": "https://schema.nfh.global/TripDescriptor/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TripDescriptor",
  "type": "object",
  "description": "An identifier that uniquely references a specific vehicle journey in a real-time transit feed.",
  "properties": {
    "tripId": {
      "description": "GTFS trip_id of the trip being referenced",
      "type": "string"
    },
    "routeId": {
      "description": "GTFS route_id associated with the trip",
      "type": "string"
    },
    "directionId": {
      "description": "Direction of travel (0 or 1)",
      "type": "string"
    },
    "startTime": {
      "description": "Scheduled start time of the trip in HH:MM:SS",
      "type": "string"
    },
    "startDate": {
      "description": "Start date of the trip in YYYYMMDD format",
      "type": "string"
    },
    "scheduleRelationship": {
      "description": "Relationship to the GTFS schedule (SCHEDULED, ADDED, UNSCHEDULED, CANCELED)",
      "type": "string"
    },
    "name": {
      "description": "Short display name of the entity",
      "type": "string"
    },
    "short_desc": {
      "description": "Brief textual description",
      "type": "string"
    },
    "long_desc": {
      "description": "Detailed or long-form description",
      "type": "string"
    },
    "media": {
      "description": "Media resource URLs (images, audio, video)",
      "type": "string",
      "format": "uri"
    },
    "images": {
      "description": "Image URLs for visual display",
      "type": "string",
      "format": "uri"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "ride-hailing"
  ]
}
