BART GTFS-R on Ably Hub 1.0.0

GTFS-R data on BART's public transport

Contact link: Ably Contact email: support@ably.io

Servers

ws://realtime.ably.io ws

Endpoint used by Ably's Realtime client libraries

Security:
  • API key:

    Provide your API key

    In: user
  • HTTP:

    JWT generated matching the Ably JWT requirements

    | JWT bearer Header: Authorization
  • HTTP: No description bearer
mqtt://mqtt.ably.io:{port} mqtt 3.1.1

Ably's MQTT endpoint

port: Secure connection (TLS) is available through port 8883.
ENUM: 1883, 8883 DEFAULT: 8883
Security:
  • API key:

    Provide your API key's public part as the user and the API key's secret part as the password. Only usable over a secure connection.

    In: user
  • HTTP:

    JWT generated matching the Ably JWT requirements. Use the token as your user, and keep the password blank

    | JWT bearer Header: Authorization
https://rest.ably.io https

Ably REST API

Operations

Sub [product:bart/gtfsr]vehicle

Array of currently active bus IDs

Accepts the following message:

<anonymous-message-1>

Payload
object
data
array<string>

Array containing all active vehicle IDs.

Items:

0
string

Additional items are allowed.

id
integer
>= 0

Id of the message

Additional properties are allowed.

Examples

<anonymous-message-1>
Payload
{
  "data": [
    "string"
  ],
  "id": 0
}
This example has been generated automatically.

Sub [product:bart/gtfsr]vehicle:all

Object of all vehicle data.

Accepts the following message:

<anonymous-message-2>

Payload
object
data
array<object>
id
string

ID of the vehicle

vehicle vehiclePosition
object
trip tripDescriptor
object
trip_id
string

ID for the trip

route_id
string

ID for the route the trip is on

direction_id
integer

Number representing direction of trip

start_time
string

The initially scheduled start time of this trip.

start_date
string

The initially scheduled start date of this trip.

schedule_relationship scheduleRelationship
string

The relation between this trip and the static schedule.

Enum: "SCHEDULED" "ADDED" "UNSCHEDULED" "CANCELED"

Additional properties are allowed.

vehicle vehicleDescriptor
object
id
string

ID for the vehicle

label
string

Label assigned to the vehicle

license_plate
string

The vehicle's license plate

Additional properties are allowed.

position position
object
latitude
number

Vehicle's current latitude

longitude
number

Vehicle's current longitude

bearing
number

Vehicle's current bearing

speed
number

Vehicle's current speed

Additional properties are allowed.

current_stop_sequence
string

The stop sequence index of the current stop. The meaning of current_stop_sequence (i.e., the stop that it refers to) is determined by current_status. If current_status is missing IN_TRANSIT_TO is assumed.

stop_id
string

Identifies the current stop. The value must be the same as in stops.txt in the corresponding GTFS feed.

current_status vehicleStopStatus
Enum: "INCOMING_AT" "STOPPED_AT" "IN_TRANSIT_TO"
timestamp
integer

Moment at which the vehicle's position was measured. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).

congestion_level congestionLevel
Enum: "UNKNOWN_CONGESTION_LEVEL" "RUNNING_SMOOTHLY" "STOP_AND_GO" "CONGESTION" "SEVERE_CONGESTION"
occupancy_status occupancyStatus
Enum: "EMPTY" "MANY_SEATS_AVAILABLE" "FEW_SEATS_AVAILABLE" "STANDING_ROOM_ONLY" "CRUSHED_STANDING_ROOM_ONLY" "FULL" "NOT_ACCEPTING_PASSENGERS"

Additional properties are allowed.

is_deleted
boolean

Whether this entity is to be deleted.

Additional items are allowed.

id
integer
>= 0

Id of the message

Additional properties are allowed.

Examples

<anonymous-message-2>
Payload
{
  "data": [
    {
      "id": "string",
      "vehicle": {
        "trip": {
          "trip_id": "string",
          "route_id": "string",
          "direction_id": 0,
          "start_time": "string",
          "start_date": "string",
          "schedule_relationship": "SCHEDULED"
        },
        "vehicle": {
          "id": "string",
          "label": "string",
          "license_plate": "string"
        },
        "position": {
          "latitude": 0,
          "longitude": 0,
          "bearing": 0,
          "speed": 0
        },
        "current_stop_sequence": "string",
        "stop_id": "string",
        "current_status": "INCOMING_AT",
        "timestamp": 0,
        "congestion_level": "UNKNOWN_CONGESTION_LEVEL",
        "occupancy_status": "EMPTY"
      },
      "is_deleted": true
    }
  ],
  "id": 0
}
This example has been generated automatically.

Sub [product:bart/gtfsr]vehicle:{vehicleId}

Object of vehicle details for vehicleId

Parameters
vehicleId
required
string

Id of the vehicle.

Accepts the following message:

<anonymous-message-3>

Payload vehicleFeedEntity
object
id
string

ID of the vehicle

vehicle vehiclePosition
object
trip tripDescriptor
object
trip_id
string

ID for the trip

route_id
string

ID for the route the trip is on

direction_id
integer

Number representing direction of trip

start_time
string

The initially scheduled start time of this trip.

start_date
string

The initially scheduled start date of this trip.

schedule_relationship scheduleRelationship
string

The relation between this trip and the static schedule.

Enum: "SCHEDULED" "ADDED" "UNSCHEDULED" "CANCELED"

Additional properties are allowed.

vehicle vehicleDescriptor
object
id
string

ID for the vehicle

label
string

Label assigned to the vehicle

license_plate
string

The vehicle's license plate

Additional properties are allowed.

position position
object
latitude
number

Vehicle's current latitude

longitude
number

Vehicle's current longitude

bearing
number

Vehicle's current bearing

speed
number

Vehicle's current speed

Additional properties are allowed.

current_stop_sequence
string

The stop sequence index of the current stop. The meaning of current_stop_sequence (i.e., the stop that it refers to) is determined by current_status. If current_status is missing IN_TRANSIT_TO is assumed.

stop_id
string

Identifies the current stop. The value must be the same as in stops.txt in the corresponding GTFS feed.

current_status vehicleStopStatus
Enum: "INCOMING_AT" "STOPPED_AT" "IN_TRANSIT_TO"
timestamp
integer

Moment at which the vehicle's position was measured. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).

congestion_level congestionLevel
Enum: "UNKNOWN_CONGESTION_LEVEL" "RUNNING_SMOOTHLY" "STOP_AND_GO" "CONGESTION" "SEVERE_CONGESTION"
occupancy_status occupancyStatus
Enum: "EMPTY" "MANY_SEATS_AVAILABLE" "FEW_SEATS_AVAILABLE" "STANDING_ROOM_ONLY" "CRUSHED_STANDING_ROOM_ONLY" "FULL" "NOT_ACCEPTING_PASSENGERS"

Additional properties are allowed.

is_deleted
boolean

Whether this entity is to be deleted.

Additional properties are allowed.

Examples

<anonymous-message-3>
Payload
{
  "id": "string",
  "vehicle": {
    "trip": {
      "trip_id": "string",
      "route_id": "string",
      "direction_id": 0,
      "start_time": "string",
      "start_date": "string",
      "schedule_relationship": "SCHEDULED"
    },
    "vehicle": {
      "id": "string",
      "label": "string",
      "license_plate": "string"
    },
    "position": {
      "latitude": 0,
      "longitude": 0,
      "bearing": 0,
      "speed": 0
    },
    "current_stop_sequence": "string",
    "stop_id": "string",
    "current_status": "INCOMING_AT",
    "timestamp": 0,
    "congestion_level": "UNKNOWN_CONGESTION_LEVEL",
    "occupancy_status": "EMPTY"
  },
  "is_deleted": true
}
This example has been generated automatically.

Sub [product:bart/gtfsr]trip_update

Array of currently active trip update IDs

Accepts the following message:

<anonymous-message-4>

Payload
object
data
array<string>

Array containing all active trip update IDs.

Items:

0
string

Additional items are allowed.

id
integer
>= 0

Id of the message

Additional properties are allowed.

Examples

<anonymous-message-4>
Payload
{
  "data": [
    "string"
  ],
  "id": 0
}
This example has been generated automatically.

Sub [product:bart/gtfsr]trip_update:all

Object of all trip update data.

Accepts the following message:

<anonymous-message-5>

Payload
object
data
array<object>
id
string

ID of the vehicle

trip_update tripUpdate
object
trip
object

The Trip that this message applies to.

trip_id
string

ID for the trip

route_id
string

ID for the route the trip is on

direction_id
integer

Number representing direction of trip

start_time
string

The initially scheduled start time of this trip.

start_date
string

The initially scheduled start date of this trip.

schedule_relationship scheduleRelationship
string

The relation between this trip and the static schedule.

Enum: "SCHEDULED" "ADDED" "UNSCHEDULED" "CANCELED"

Additional properties are allowed.

vehicle
object

Additional information on the vehicle that is serving this trip.

id
string

ID for the vehicle

label
string

Label assigned to the vehicle

license_plate
string

The vehicle's license plate

Additional properties are allowed.

stop_time_update stopTimeUpdate
object
stop_sequence
integer

Must be the same as in stop_times.txt in the corresponding GTFS feed.

stop_id
string

Must be the same as in stops.txt in the corresponding GTFS feed. Either stop_sequence or stop_id must be provided within a StopTimeUpdate - both fields cannot be empty.

arrival
object

If schedule_relationship is empty or SCHEDULED, either arrival or departure must be provided within a StopTimeUpdate - both fields cannot be empty. arrival and departure may both be empty when schedule_relationship is SKIPPED. If schedule_relationship is NO_DATA, arrival and departure must be empty.

delay
integer

Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

time
integer

Event as absolute time. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC). Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

uncertainty
integer

If uncertainty is omitted, it is interpreted as unknown. To specify a completely certain prediction, set its uncertainty to 0.

Additional properties are allowed.

departure
object

If schedule_relationship is empty or SCHEDULED, either arrival or departure must be provided within a StopTimeUpdate - both fields cannot be empty. arrival and departure may both be empty when schedule_relationship is SKIPPED. If schedule_relationship is NO_DATA, arrival and departure must be empty.

delay
integer

Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

time
integer

Event as absolute time. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC). Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

uncertainty
integer

If uncertainty is omitted, it is interpreted as unknown. To specify a completely certain prediction, set its uncertainty to 0.

Additional properties are allowed.

schedule_relationship scheduleRelationship
string

The relation between this trip and the static schedule.

Enum: "SCHEDULED" "ADDED" "UNSCHEDULED" "CANCELED"

Additional properties are allowed.

timestamp
integer

Moment at which the vehicle's real-time progress was measured. In POSIX time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).

delay
integer

The current schedule deviation for the trip.

Additional properties are allowed.

is_deleted
boolean

Whether this entity is to be deleted.

Additional items are allowed.

id
integer
>= 0

Id of the message

Additional properties are allowed.

Examples

<anonymous-message-5>
Payload
{
  "data": [
    {
      "id": "string",
      "trip_update": {
        "trip": {
          "trip_id": "string",
          "route_id": "string",
          "direction_id": 0,
          "start_time": "string",
          "start_date": "string",
          "schedule_relationship": "SCHEDULED"
        },
        "vehicle": {
          "id": "string",
          "label": "string",
          "license_plate": "string"
        },
        "stop_time_update": {
          "stop_sequence": 0,
          "stop_id": "string",
          "arrival": {
            "delay": 0,
            "time": 0,
            "uncertainty": 0
          },
          "departure": {
            "delay": 0,
            "time": 0,
            "uncertainty": 0
          },
          "schedule_relationship": "SCHEDULED"
        },
        "timestamp": 0,
        "delay": 0
      },
      "is_deleted": true
    }
  ],
  "id": 0
}
This example has been generated automatically.

Sub [product:bart/gtfsr]trip_update:{tripUpdateId}

Object of trip update details for a given tripUpdateId

Parameters
tripUpdateId
required
string

Id of the trip update.

Accepts the following message:

<anonymous-message-6>

Payload tripFeedEntity
object
id
string

ID of the vehicle

trip_update tripUpdate
object
trip
object

The Trip that this message applies to.

trip_id
string

ID for the trip

route_id
string

ID for the route the trip is on

direction_id
integer

Number representing direction of trip

start_time
string

The initially scheduled start time of this trip.

start_date
string

The initially scheduled start date of this trip.

schedule_relationship scheduleRelationship
string

The relation between this trip and the static schedule.

Enum: "SCHEDULED" "ADDED" "UNSCHEDULED" "CANCELED"

Additional properties are allowed.

vehicle
object

Additional information on the vehicle that is serving this trip.

id
string

ID for the vehicle

label
string

Label assigned to the vehicle

license_plate
string

The vehicle's license plate

Additional properties are allowed.

stop_time_update stopTimeUpdate
object
stop_sequence
integer

Must be the same as in stop_times.txt in the corresponding GTFS feed.

stop_id
string

Must be the same as in stops.txt in the corresponding GTFS feed. Either stop_sequence or stop_id must be provided within a StopTimeUpdate - both fields cannot be empty.

arrival
object

If schedule_relationship is empty or SCHEDULED, either arrival or departure must be provided within a StopTimeUpdate - both fields cannot be empty. arrival and departure may both be empty when schedule_relationship is SKIPPED. If schedule_relationship is NO_DATA, arrival and departure must be empty.

delay
integer

Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

time
integer

Event as absolute time. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC). Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

uncertainty
integer

If uncertainty is omitted, it is interpreted as unknown. To specify a completely certain prediction, set its uncertainty to 0.

Additional properties are allowed.

departure
object

If schedule_relationship is empty or SCHEDULED, either arrival or departure must be provided within a StopTimeUpdate - both fields cannot be empty. arrival and departure may both be empty when schedule_relationship is SKIPPED. If schedule_relationship is NO_DATA, arrival and departure must be empty.

delay
integer

Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

time
integer

Event as absolute time. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC). Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

uncertainty
integer

If uncertainty is omitted, it is interpreted as unknown. To specify a completely certain prediction, set its uncertainty to 0.

Additional properties are allowed.

schedule_relationship scheduleRelationship
string

The relation between this trip and the static schedule.

Enum: "SCHEDULED" "ADDED" "UNSCHEDULED" "CANCELED"

Additional properties are allowed.

timestamp
integer

Moment at which the vehicle's real-time progress was measured. In POSIX time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).

delay
integer

The current schedule deviation for the trip.

Additional properties are allowed.

is_deleted
boolean

Whether this entity is to be deleted.

Additional properties are allowed.

Examples

<anonymous-message-6>
Payload
{
  "id": "string",
  "trip_update": {
    "trip": {
      "trip_id": "string",
      "route_id": "string",
      "direction_id": 0,
      "start_time": "string",
      "start_date": "string",
      "schedule_relationship": "SCHEDULED"
    },
    "vehicle": {
      "id": "string",
      "label": "string",
      "license_plate": "string"
    },
    "stop_time_update": {
      "stop_sequence": 0,
      "stop_id": "string",
      "arrival": {
        "delay": 0,
        "time": 0,
        "uncertainty": 0
      },
      "departure": {
        "delay": 0,
        "time": 0,
        "uncertainty": 0
      },
      "schedule_relationship": "SCHEDULED"
    },
    "timestamp": 0,
    "delay": 0
  },
  "is_deleted": true
}
This example has been generated automatically.

Sub [product:bart/gtfsr]alert

Array of currently active alert IDs

Accepts the following message:

<anonymous-message-7>

Payload
object
data
array<string>

Array containing all active alert IDs.

Items:

0
string

Additional items are allowed.

id
integer
>= 0

Id of the message

Additional properties are allowed.

Examples

<anonymous-message-7>
Payload
{
  "data": [
    "string"
  ],
  "id": 0
}
This example has been generated automatically.

Sub [product:bart/gtfsr]alert:all

Object of all alert data.

Accepts the following message:

<anonymous-message-8>

Payload
object
data
array<object>
id
string

ID of the vehicle

alert alert
object
active_period timeRange
array<Unknown>

Items:

0

Additional items are allowed.

informed_entity
<object>
cause cause
string

Cause of alert.

Enum: "UNKNOWN_CAUSE" "OTHER_CAUSE" "TECHNICAL_PROBLEM" "STRIKE" "DEMONSTRATION" "ACCIDENT" "HOLIDAY" "WEATHER" "MAINTENANCE" "CONSTRUCTION" "POLICE_ACTIVITY" "MEDICAL_EMERGENCY"
effect effect
string

Cause of alert.

Enum: "NO_SERVICE" "REDUCED_SERVICE" "SIGNIFICANT_DELAYS" "DETOUR" "ADDITIONAL_SERVICE" "MODIFIED_SERVICE" "OTHER_EFFECT" "UNKNOWN_EFFECT" "STOP_MOVED"
url
string

The URL which provides additional information about the alert.

header_text
string

Header for the alert. This plain-text string will be highlighted, for example in boldface.

description_text
string

Description for the alert.

Additional properties are allowed.

is_deleted
boolean

Whether this entity is to be deleted.

Additional items are allowed.

id
integer
>= 0

Id of the message

Additional properties are allowed.

Examples

<anonymous-message-8>
Payload
{
  "data": [
    {
      "id": "string",
      "alert": {
        "active_period": [
          null
        ],
        "informed_entity": [
          {
            "agency_id": "string",
            "route_id": "string",
            "route_type": 0,
            "trip": {
              "trip_id": "string",
              "route_id": "string",
              "direction_id": 0,
              "start_time": "string",
              "start_date": "string",
              "schedule_relationship": "SCHEDULED"
            },
            "stop_id": "string"
          }
        ],
        "cause": "UNKNOWN_CAUSE",
        "effect": "NO_SERVICE",
        "url": "string",
        "header_text": "string",
        "description_text": "string"
      },
      "is_deleted": true
    }
  ],
  "id": 0
}
This example has been generated automatically.

Sub [product:bart/gtfsr]alert:{alertId}

Object of alert details for alertId

Parameters
alertId
required
string

Id of the alert.

Accepts the following message:

<anonymous-message-9>

Payload alertFeedEntity
object
id
string

ID of the vehicle

alert alert
object
active_period timeRange
array<Unknown>

Items:

0

Additional items are allowed.

informed_entity
<object>
cause cause
string

Cause of alert.

Enum: "UNKNOWN_CAUSE" "OTHER_CAUSE" "TECHNICAL_PROBLEM" "STRIKE" "DEMONSTRATION" "ACCIDENT" "HOLIDAY" "WEATHER" "MAINTENANCE" "CONSTRUCTION" "POLICE_ACTIVITY" "MEDICAL_EMERGENCY"
effect effect
string

Cause of alert.

Enum: "NO_SERVICE" "REDUCED_SERVICE" "SIGNIFICANT_DELAYS" "DETOUR" "ADDITIONAL_SERVICE" "MODIFIED_SERVICE" "OTHER_EFFECT" "UNKNOWN_EFFECT" "STOP_MOVED"
url
string

The URL which provides additional information about the alert.

header_text
string

Header for the alert. This plain-text string will be highlighted, for example in boldface.

description_text
string

Description for the alert.

Additional properties are allowed.

is_deleted
boolean

Whether this entity is to be deleted.

Additional properties are allowed.

Examples

<anonymous-message-9>
Payload
{
  "id": "string",
  "alert": {
    "active_period": [
      null
    ],
    "informed_entity": [
      {
        "agency_id": "string",
        "route_id": "string",
        "route_type": 0,
        "trip": {
          "trip_id": "string",
          "route_id": "string",
          "direction_id": 0,
          "start_time": "string",
          "start_date": "string",
          "schedule_relationship": "SCHEDULED"
        },
        "stop_id": "string"
      }
    ],
    "cause": "UNKNOWN_CAUSE",
    "effect": "NO_SERVICE",
    "url": "string",
    "header_text": "string",
    "description_text": "string"
  },
  "is_deleted": true
}
This example has been generated automatically.

Messages

#1 <anonymous-message-1>

Payload
object
data
array<string>

Array containing all active vehicle IDs.

Items:

0
string

Additional items are allowed.

id
integer
>= 0

Id of the message

Additional properties are allowed.

#2 <anonymous-message-2>

Payload
object
data
array<object>
id
string

ID of the vehicle

vehicle vehiclePosition
object
trip tripDescriptor
object
trip_id
string

ID for the trip

route_id
string

ID for the route the trip is on

direction_id
integer

Number representing direction of trip

start_time
string

The initially scheduled start time of this trip.

start_date
string

The initially scheduled start date of this trip.

schedule_relationship scheduleRelationship
string

The relation between this trip and the static schedule.

Enum: "SCHEDULED" "ADDED" "UNSCHEDULED" "CANCELED"

Additional properties are allowed.

vehicle vehicleDescriptor
object
id
string

ID for the vehicle

label
string

Label assigned to the vehicle

license_plate
string

The vehicle's license plate

Additional properties are allowed.

position position
object
latitude
number

Vehicle's current latitude

longitude
number

Vehicle's current longitude

bearing
number

Vehicle's current bearing

speed
number

Vehicle's current speed

Additional properties are allowed.

current_stop_sequence
string

The stop sequence index of the current stop. The meaning of current_stop_sequence (i.e., the stop that it refers to) is determined by current_status. If current_status is missing IN_TRANSIT_TO is assumed.

stop_id
string

Identifies the current stop. The value must be the same as in stops.txt in the corresponding GTFS feed.

current_status vehicleStopStatus
Enum: "INCOMING_AT" "STOPPED_AT" "IN_TRANSIT_TO"
timestamp
integer

Moment at which the vehicle's position was measured. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).

congestion_level congestionLevel
Enum: "UNKNOWN_CONGESTION_LEVEL" "RUNNING_SMOOTHLY" "STOP_AND_GO" "CONGESTION" "SEVERE_CONGESTION"
occupancy_status occupancyStatus
Enum: "EMPTY" "MANY_SEATS_AVAILABLE" "FEW_SEATS_AVAILABLE" "STANDING_ROOM_ONLY" "CRUSHED_STANDING_ROOM_ONLY" "FULL" "NOT_ACCEPTING_PASSENGERS"

Additional properties are allowed.

is_deleted
boolean

Whether this entity is to be deleted.

Additional items are allowed.

id
integer
>= 0

Id of the message

Additional properties are allowed.

#3 <anonymous-message-3>

Payload vehicleFeedEntity
object
id
string

ID of the vehicle

vehicle vehiclePosition
object
trip tripDescriptor
object
trip_id
string

ID for the trip

route_id
string

ID for the route the trip is on

direction_id
integer

Number representing direction of trip

start_time
string

The initially scheduled start time of this trip.

start_date
string

The initially scheduled start date of this trip.

schedule_relationship scheduleRelationship
string

The relation between this trip and the static schedule.

Enum: "SCHEDULED" "ADDED" "UNSCHEDULED" "CANCELED"

Additional properties are allowed.

vehicle vehicleDescriptor
object
id
string

ID for the vehicle

label
string

Label assigned to the vehicle

license_plate
string

The vehicle's license plate

Additional properties are allowed.

position position
object
latitude
number

Vehicle's current latitude

longitude
number

Vehicle's current longitude

bearing
number

Vehicle's current bearing

speed
number

Vehicle's current speed

Additional properties are allowed.

current_stop_sequence
string

The stop sequence index of the current stop. The meaning of current_stop_sequence (i.e., the stop that it refers to) is determined by current_status. If current_status is missing IN_TRANSIT_TO is assumed.

stop_id
string

Identifies the current stop. The value must be the same as in stops.txt in the corresponding GTFS feed.

current_status vehicleStopStatus
Enum: "INCOMING_AT" "STOPPED_AT" "IN_TRANSIT_TO"
timestamp
integer

Moment at which the vehicle's position was measured. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).

congestion_level congestionLevel
Enum: "UNKNOWN_CONGESTION_LEVEL" "RUNNING_SMOOTHLY" "STOP_AND_GO" "CONGESTION" "SEVERE_CONGESTION"
occupancy_status occupancyStatus
Enum: "EMPTY" "MANY_SEATS_AVAILABLE" "FEW_SEATS_AVAILABLE" "STANDING_ROOM_ONLY" "CRUSHED_STANDING_ROOM_ONLY" "FULL" "NOT_ACCEPTING_PASSENGERS"

Additional properties are allowed.

is_deleted
boolean

Whether this entity is to be deleted.

Additional properties are allowed.

#4 <anonymous-message-4>

Payload
object
data
array<string>

Array containing all active trip update IDs.

Items:

0
string

Additional items are allowed.

id
integer
>= 0

Id of the message

Additional properties are allowed.

#5 <anonymous-message-5>

Payload
object
data
array<object>
id
string

ID of the vehicle

trip_update tripUpdate
object
trip
object

The Trip that this message applies to.

trip_id
string

ID for the trip

route_id
string

ID for the route the trip is on

direction_id
integer

Number representing direction of trip

start_time
string

The initially scheduled start time of this trip.

start_date
string

The initially scheduled start date of this trip.

schedule_relationship scheduleRelationship
string

The relation between this trip and the static schedule.

Enum: "SCHEDULED" "ADDED" "UNSCHEDULED" "CANCELED"

Additional properties are allowed.

vehicle
object

Additional information on the vehicle that is serving this trip.

id
string

ID for the vehicle

label
string

Label assigned to the vehicle

license_plate
string

The vehicle's license plate

Additional properties are allowed.

stop_time_update stopTimeUpdate
object
stop_sequence
integer

Must be the same as in stop_times.txt in the corresponding GTFS feed.

stop_id
string

Must be the same as in stops.txt in the corresponding GTFS feed. Either stop_sequence or stop_id must be provided within a StopTimeUpdate - both fields cannot be empty.

arrival
object

If schedule_relationship is empty or SCHEDULED, either arrival or departure must be provided within a StopTimeUpdate - both fields cannot be empty. arrival and departure may both be empty when schedule_relationship is SKIPPED. If schedule_relationship is NO_DATA, arrival and departure must be empty.

delay
integer

Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

time
integer

Event as absolute time. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC). Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

uncertainty
integer

If uncertainty is omitted, it is interpreted as unknown. To specify a completely certain prediction, set its uncertainty to 0.

Additional properties are allowed.

departure
object

If schedule_relationship is empty or SCHEDULED, either arrival or departure must be provided within a StopTimeUpdate - both fields cannot be empty. arrival and departure may both be empty when schedule_relationship is SKIPPED. If schedule_relationship is NO_DATA, arrival and departure must be empty.

delay
integer

Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

time
integer

Event as absolute time. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC). Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

uncertainty
integer

If uncertainty is omitted, it is interpreted as unknown. To specify a completely certain prediction, set its uncertainty to 0.

Additional properties are allowed.

schedule_relationship scheduleRelationship
string

The relation between this trip and the static schedule.

Enum: "SCHEDULED" "ADDED" "UNSCHEDULED" "CANCELED"

Additional properties are allowed.

timestamp
integer

Moment at which the vehicle's real-time progress was measured. In POSIX time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).

delay
integer

The current schedule deviation for the trip.

Additional properties are allowed.

is_deleted
boolean

Whether this entity is to be deleted.

Additional items are allowed.

id
integer
>= 0

Id of the message

Additional properties are allowed.

#6 <anonymous-message-6>

Payload tripFeedEntity
object
id
string

ID of the vehicle

trip_update tripUpdate
object
trip
object

The Trip that this message applies to.

trip_id
string

ID for the trip

route_id
string

ID for the route the trip is on

direction_id
integer

Number representing direction of trip

start_time
string

The initially scheduled start time of this trip.

start_date
string

The initially scheduled start date of this trip.

schedule_relationship scheduleRelationship
string

The relation between this trip and the static schedule.

Enum: "SCHEDULED" "ADDED" "UNSCHEDULED" "CANCELED"

Additional properties are allowed.

vehicle
object

Additional information on the vehicle that is serving this trip.

id
string

ID for the vehicle

label
string

Label assigned to the vehicle

license_plate
string

The vehicle's license plate

Additional properties are allowed.

stop_time_update stopTimeUpdate
object
stop_sequence
integer

Must be the same as in stop_times.txt in the corresponding GTFS feed.

stop_id
string

Must be the same as in stops.txt in the corresponding GTFS feed. Either stop_sequence or stop_id must be provided within a StopTimeUpdate - both fields cannot be empty.

arrival
object

If schedule_relationship is empty or SCHEDULED, either arrival or departure must be provided within a StopTimeUpdate - both fields cannot be empty. arrival and departure may both be empty when schedule_relationship is SKIPPED. If schedule_relationship is NO_DATA, arrival and departure must be empty.

delay
integer

Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

time
integer

Event as absolute time. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC). Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

uncertainty
integer

If uncertainty is omitted, it is interpreted as unknown. To specify a completely certain prediction, set its uncertainty to 0.

Additional properties are allowed.

departure
object

If schedule_relationship is empty or SCHEDULED, either arrival or departure must be provided within a StopTimeUpdate - both fields cannot be empty. arrival and departure may both be empty when schedule_relationship is SKIPPED. If schedule_relationship is NO_DATA, arrival and departure must be empty.

delay
integer

Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

time
integer

Event as absolute time. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC). Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.

uncertainty
integer

If uncertainty is omitted, it is interpreted as unknown. To specify a completely certain prediction, set its uncertainty to 0.

Additional properties are allowed.

schedule_relationship scheduleRelationship
string

The relation between this trip and the static schedule.

Enum: "SCHEDULED" "ADDED" "UNSCHEDULED" "CANCELED"

Additional properties are allowed.

timestamp
integer

Moment at which the vehicle's real-time progress was measured. In POSIX time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).

delay
integer

The current schedule deviation for the trip.

Additional properties are allowed.

is_deleted
boolean

Whether this entity is to be deleted.

Additional properties are allowed.

#7 <anonymous-message-7>

Payload
object
data
array<string>

Array containing all active alert IDs.

Items:

0
string

Additional items are allowed.

id
integer
>= 0

Id of the message

Additional properties are allowed.

#8 <anonymous-message-8>

Payload
object
data
array<object>
id
string

ID of the vehicle

alert alert
object
active_period timeRange
array<Unknown>

Items:

0

Additional items are allowed.

informed_entity
<object>
cause cause
string

Cause of alert.

Enum: "UNKNOWN_CAUSE" "OTHER_CAUSE" "TECHNICAL_PROBLEM" "STRIKE" "DEMONSTRATION" "ACCIDENT" "HOLIDAY" "WEATHER" "MAINTENANCE" "CONSTRUCTION" "POLICE_ACTIVITY" "MEDICAL_EMERGENCY"
effect effect
string

Cause of alert.

Enum: "NO_SERVICE" "REDUCED_SERVICE" "SIGNIFICANT_DELAYS" "DETOUR" "ADDITIONAL_SERVICE" "MODIFIED_SERVICE" "OTHER_EFFECT" "UNKNOWN_EFFECT" "STOP_MOVED"
url
string

The URL which provides additional information about the alert.

header_text
string

Header for the alert. This plain-text string will be highlighted, for example in boldface.

description_text
string

Description for the alert.

Additional properties are allowed.

is_deleted
boolean

Whether this entity is to be deleted.

Additional items are allowed.

id
integer
>= 0

Id of the message

Additional properties are allowed.

#9 <anonymous-message-9>

Payload alertFeedEntity
object
id
string

ID of the vehicle

alert alert
object
active_period timeRange
array<Unknown>

Items:

0

Additional items are allowed.

informed_entity
<object>
cause cause
string

Cause of alert.

Enum: "UNKNOWN_CAUSE" "OTHER_CAUSE" "TECHNICAL_PROBLEM" "STRIKE" "DEMONSTRATION" "ACCIDENT" "HOLIDAY" "WEATHER" "MAINTENANCE" "CONSTRUCTION" "POLICE_ACTIVITY" "MEDICAL_EMERGENCY"
effect effect
string

Cause of alert.

Enum: "NO_SERVICE" "REDUCED_SERVICE" "SIGNIFICANT_DELAYS" "DETOUR" "ADDITIONAL_SERVICE" "MODIFIED_SERVICE" "OTHER_EFFECT" "UNKNOWN_EFFECT" "STOP_MOVED"
url
string

The URL which provides additional information about the alert.

header_text
string

Header for the alert. This plain-text string will be highlighted, for example in boldface.

description_text
string

Description for the alert.

Additional properties are allowed.

is_deleted
boolean

Whether this entity is to be deleted.

Additional properties are allowed.