openapi: 3.1.0 info: title: VehiclePosition version: 2.0.0 description: Schema definition for the VehiclePosition entity in the Beckn Mobility 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: VehiclePosition: type: object title: VehiclePosition description: The current real-time geographic position, bearing, and speed of a vehicle operating a transport service. x-tags: - mobility - geosparql - schema-org - ride-hailing properties: tripDescriptor: description: Identifies the trip this vehicle is operating $ref: https://schema.beckn.io/TripDescriptor/v2.0/attributes.yaml#/components/schemas/TripDescriptor vehicleDescriptor: description: Identifies the reporting vehicle $ref: https://schema.beckn.io/VehicleDescriptor/v2.0/attributes.yaml#/components/schemas/VehicleDescriptor latitude: description: Current latitude in WGS-84 decimal degrees type: number longitude: description: Current longitude in WGS-84 decimal degrees type: number bearing: description: Current bearing in degrees (0=north, 90=east) type: number speed: description: Current speed in metres per second type: number currentStopSequence: description: Stop sequence index of the stop the vehicle is at or approaching type: number currentStatus: description: Vehicle status relative to the stop (INCOMING_AT, STOPPED_AT, IN_TRANSIT_TO) type: string timestamp: description: Timestamp of this position report 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.beckn.io/State/v2.0/attributes.yaml#/components/schemas/State validity: description: Validity period for this tracking record $ref: https://schema.beckn.io/TimePeriod/v2.0/attributes.yaml#/components/schemas/TimePeriod additionalProperties: false