openapi: 3.1.0
info:
  title: EstimatedTimetableDelivery
  version: 2.0.0
  description: Schema definition for the EstimatedTimetableDelivery entity in the
  license:
    name: CC-BY-NC-SA 4.0 International
    url: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en
  contact:
    name: Beckn Labs
    url: https://beckn.io
components:
  schemas:
    EstimatedTimetableDelivery:
      x-iri: https://schema.nfh.global/EstimatedTimetableDelivery/v2.0
      type: object
      title: EstimatedTimetableDelivery
      description: A real-time data delivery providing predicted departure and arrival
        times for a set of vehicle journeys.
      x-tags:
        - mobility
        - ride-hailing
      properties:
        responseTimestamp:
          description: Timestamp of this delivery response
          type: string
          format: date-time
        estimatedVehicleJourneys:
          description: Vehicle journeys with estimated timetable data
          $ref: https://schema.nfh.global/VehicleJourney/v2.0/attributes.yaml#/components/schemas/VehicleJourney
        validUntil:
          description: Time until which this estimated data is valid
          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/attributes.yaml#/components/schemas/State
        validity:
          description: Validity period for this tracking record
          $ref: https://schema.nfh.global/TimePeriod/v2.0/attributes.yaml#/components/schemas/TimePeriod
      additionalProperties: false
