openapi: 3.1.0
info:
  title: Stop
  version: 2.0.0
  description: Schema definition for the Stop entity in the Beckn Mobility domain.
  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:
    Stop:
      x-iri: https://schema.nfh.global/Stop/v2.0
      type: object
      title: Stop
      description: A designated location where vehicles stop to allow passengers to
        board or alight from a transport service.
      x-tags:
        - mobility
        - geosparql
        - schema-org
        - transmodel-netex
        - ride-hailing
      properties:
        stopId:
          description: Unique identifier for the stop
          type: string
        stopCode:
          description: Short public-facing code for the stop
          type: string
        stopName:
          description: Human-readable name of the stop
          type: string
        locationType:
          description: Classification of location (0=stop, 1=station, 2=entrance,
            3=generic_node, 4=boarding_area)
          type: string
        parentStation:
          description: Reference to the parent station if this is a platform
          $ref: https://schema.nfh.global/Station/v2.0/attributes.yaml#/components/schemas/Station
        wheelchairBoarding:
          description: Wheelchair accessibility (0=no info, 1=accessible, 2=not accessible)
          type: string
        id:
          description: Unique identifier for the fulfillment stop
          type: string
        location:
          description: Geographic location of the stop
          $ref: https://schema.nfh.global/Location/v2.0/attributes.yaml#/components/schemas/Location
        type:
          description: Type of stop (start, end, intermediate)
          type: string
        instructions:
          description: Instructions for passengers at this stop
          $ref: https://schema.nfh.global/Descriptor/v2.0/attributes.yaml#/components/schemas/Descriptor
        time:
          description: Expected time window at this stop
          $ref: https://schema.nfh.global/TimePeriod/v2.0/attributes.yaml#/components/schemas/TimePeriod
      additionalProperties: false
