Returns arrivals and departures in the next hour for a direction and route for a given stop.
Tpredictionsbystop(stop_id,
include_access_alerts = FALSE, include_service_alerts = TRUE, api_key)
GTFS-compatible stop_id value for which predictions should be returned. Example: "Back Bay"
Whether or not alerts pertaining to accessibility (elevators, escalators) should be returned. Data type: logical. Defaults to FALSE.
Whether or not service alerts should be returned. Data type: logical. Defaults to TRUE.
API key for MBTA API. To obtain one, visit the MBTA Developer Portal (http://realtime.mbta.com/Portal/)
The GTFS-compatible unique identifier for the stop for which the predictions are returned. Example: "Back Bay"
The GTFS-compatible name for the stop for which the predictions are returned. Example: "Back Bay"
The GTFS-compatible identifier for the type of service (mode). Example: "2"
The human-readable name for the type of service (mode). Example: "Commuter Rail"
The unique GTFS-compatible identifier for the route. Example: "Red"
The human-readable name for the route. Example: "Red Line"
The GTFS-compatible identifier for the direction. Example: "0"
The human-readable name for the direction. Example: "Outbound"
The unique GTFS-compatible identifier for the trip. Example: "CR-Providence-CR-Weekday-815"
The human-readable name for the trip. Example: "815 (4:35 pm from South Station)"
The text that identifies the trip's destination to passengers. Example: "North Station"
The GTFS-compatible unique identifier for the vehicle. Example: "1531"
The GTFS-compatible latitude of the vehicle. Example: "42.08997"
The GTFS-compatible longitude of the vehicle. Example: "-71.4388"
GTFS-compatable bearing of the vehicle. This can be the compass bearing, or the direction towards the next stop or intermediate location. May be empty. Example: "259"
Identifies the vehicle's momentary speed, in meters per second. Example: "21"
Identifies the moment when the content of this feed has been created, in epoch time. Example: "1400855704"
Identifies where the stop comes in the sequence of stops for this trip. Example: "2"
The GTFS-compatible unique identifier for the stop. Example: "Back Bay"
The GTFS-compatible name for the stop. Example: "Back Bay"
Scheduled arrival time at the stop for the trip, in epoch time. Example: "1361986080"
Scheduled departure time at the stop for the trip, in epoch time. Example: "1361986080"
Predicted time at the stop - departure time for origin stop and arrival time for all other stops - for the trip, in epoch time. Example: "1400855700"
Predicted amount of time until the vehicle arrives at the stop, in seconds. Example: "339"