OneBusAway · Schema

ArrivalDepartureForStop

TransitPublic TransitReal-TimeArrivalsDeparturesBusGTFSOpen SourceStop DataTrip PlanningService AlertsVehicle PositionsOpen Data

Properties

Name Type Description
actualTrack string The actual track information of the arriving transit vehicle.
arrivalEnabled boolean Indicates if riders can arrive on this transit vehicle.
blockTripSequence integer Index of this arrival’s trip into the sequence of trips for the active block.
departureEnabled boolean Indicates if riders can depart from this transit vehicle.
distanceFromStop number Distance of the arriving transit vehicle from the stop, in meters.
frequency string Information about frequency-based scheduling, if applicable to the trip.
historicalOccupancy string Historical occupancy information of the transit vehicle.
lastUpdateTime integer Timestamp of the last update time for this arrival.
numberOfStopsAway integer Number of stops between the arriving transit vehicle and the current stop (excluding the current stop).
occupancyStatus string Current occupancy status of the transit vehicle.
predicted boolean Indicates if real-time arrival info is available for this trip.
predictedArrivalInterval string Interval for predicted arrival time, if available.
predictedArrivalTime integer Predicted arrival time, in milliseconds since Unix epoch (zero if no real-time available).
predictedDepartureInterval string Interval for predicted departure time, if available.
predictedDepartureTime integer Predicted departure time, in milliseconds since Unix epoch (zero if no real-time available).
predictedOccupancy string Predicted occupancy status of the transit vehicle.
routeId string The ID of the route for the arriving vehicle.
routeLongName string Optional route long name that potentially overrides the route long name in the referenced route element.
routeShortName string Optional route short name that potentially overrides the route short name in the referenced route element.
scheduledArrivalInterval string Interval for scheduled arrival time.
scheduledArrivalTime integer Scheduled arrival time, in milliseconds since Unix epoch.
scheduledDepartureInterval string Interval for scheduled departure time.
scheduledDepartureTime integer Scheduled departure time, in milliseconds since Unix epoch.
scheduledTrack string Scheduled track information of the arriving transit vehicle.
serviceDate integer Time, in milliseconds since the Unix epoch, of midnight for the start of the service date for the trip.
situationIds array References to situation elements (if any) applicable to this arrival.
status string Current status of the arrival.
stopId string The ID of the stop the vehicle is arriving at.
stopSequence integer Index of the stop into the sequence of stops that make up the trip for this arrival.
totalStopsInTrip integer Total number of stops visited on the trip for this arrival.
tripHeadsign string Optional trip headsign that potentially overrides the trip headsign in the referenced trip element.
tripId string The ID of the trip for the arriving vehicle.
tripStatus object
vehicleId string ID of the transit vehicle serving this trip.
View JSON Schema on GitHub

JSON Schema

ArrivalDepartureForStop.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "ArrivalDepartureForStop",
  "type": "object",
  "properties": {
    "actualTrack": {
      "type": "string",
      "description": "The actual track information of the arriving transit vehicle."
    },
    "arrivalEnabled": {
      "type": "boolean",
      "description": "Indicates if riders can arrive on this transit vehicle."
    },
    "blockTripSequence": {
      "type": "integer",
      "description": "Index of this arrival\u2019s trip into the sequence of trips for the active block."
    },
    "departureEnabled": {
      "type": "boolean",
      "description": "Indicates if riders can depart from this transit vehicle."
    },
    "distanceFromStop": {
      "type": "number",
      "description": "Distance of the arriving transit vehicle from the stop, in meters."
    },
    "frequency": {
      "type": "string",
      "nullable": true,
      "description": "Information about frequency-based scheduling, if applicable to the trip."
    },
    "historicalOccupancy": {
      "type": "string",
      "description": "Historical occupancy information of the transit vehicle."
    },
    "lastUpdateTime": {
      "type": "integer",
      "description": "Timestamp of the last update time for this arrival."
    },
    "numberOfStopsAway": {
      "type": "integer",
      "description": "Number of stops between the arriving transit vehicle and the current stop (excluding the current stop)."
    },
    "occupancyStatus": {
      "type": "string",
      "description": "Current occupancy status of the transit vehicle."
    },
    "predicted": {
      "type": "boolean",
      "description": "Indicates if real-time arrival info is available for this trip."
    },
    "predictedArrivalInterval": {
      "type": "string",
      "nullable": true,
      "description": "Interval for predicted arrival time, if available."
    },
    "predictedArrivalTime": {
      "type": "integer",
      "description": "Predicted arrival time, in milliseconds since Unix epoch (zero if no real-time available)."
    },
    "predictedDepartureInterval": {
      "type": "string",
      "nullable": true,
      "description": "Interval for predicted departure time, if available."
    },
    "predictedDepartureTime": {
      "type": "integer",
      "description": "Predicted departure time, in milliseconds since Unix epoch (zero if no real-time available)."
    },
    "predictedOccupancy": {
      "type": "string",
      "description": "Predicted occupancy status of the transit vehicle."
    },
    "routeId": {
      "type": "string",
      "description": "The ID of the route for the arriving vehicle."
    },
    "routeLongName": {
      "type": "string",
      "description": "Optional route long name that potentially overrides the route long name in the referenced route element."
    },
    "routeShortName": {
      "type": "string",
      "description": "Optional route short name that potentially overrides the route short name in the referenced route element."
    },
    "scheduledArrivalInterval": {
      "type": "string",
      "nullable": true,
      "description": "Interval for scheduled arrival time."
    },
    "scheduledArrivalTime": {
      "type": "integer",
      "description": "Scheduled arrival time, in milliseconds since Unix epoch."
    },
    "scheduledDepartureInterval": {
      "type": "string",
      "nullable": true,
      "description": "Interval for scheduled departure time."
    },
    "scheduledDepartureTime": {
      "type": "integer",
      "description": "Scheduled departure time, in milliseconds since Unix epoch."
    },
    "scheduledTrack": {
      "type": "string",
      "description": "Scheduled track information of the arriving transit vehicle."
    },
    "serviceDate": {
      "type": "integer",
      "description": "Time, in milliseconds since the Unix epoch, of midnight for the start of the service date for the trip."
    },
    "situationIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "References to situation elements (if any) applicable to this arrival."
    },
    "status": {
      "type": "string",
      "description": "Current status of the arrival."
    },
    "stopId": {
      "type": "string",
      "description": "The ID of the stop the vehicle is arriving at."
    },
    "stopSequence": {
      "type": "integer",
      "description": "Index of the stop into the sequence of stops that make up the trip for this arrival."
    },
    "totalStopsInTrip": {
      "type": "integer",
      "description": "Total number of stops visited on the trip for this arrival."
    },
    "tripHeadsign": {
      "type": "string",
      "description": "Optional trip headsign that potentially overrides the trip headsign in the referenced trip element."
    },
    "tripId": {
      "type": "string",
      "description": "The ID of the trip for the arriving vehicle."
    },
    "tripStatus": {
      "$ref": "#/components/schemas/TripStatus"
    },
    "vehicleId": {
      "type": "string",
      "description": "ID of the transit vehicle serving this trip."
    }
  },
  "required": [
    "stopId",
    "tripId",
    "serviceDate",
    "routeId",
    "scheduledArrivalTime",
    "scheduledDepartureTime",
    "predictedArrivalTime",
    "predictedDepartureTime",
    "stopSequence",
    "totalStopsInTrip",
    "tripHeadsign",
    "vehicleId",
    "blockTripSequence",
    "arrivalEnabled",
    "departureEnabled",
    "numberOfStopsAway"
  ]
}