Description Usage Arguments Value See Also
Returns scheduled arrival and departure times for a particular trip.
1 | Tschedulebytrip(trip_id, datetime = Sys.time(), api_key)
|
trip_id |
GTFS-compatible trip_id value for which schedule should be returned. Example: "CR-Providence-CR-Weekday-807" |
datetime |
Epoch time after which schedule should be returned. If included then must be within the next seven (7) days. If not included then schedule starting from the current datetime will be returned, using Sys.time converted to epoch time. Example: "1361989200" |
api_key |
API key for MBTA API. To obtain one, visit the MBTA Developer Portal (http://realtime.mbta.com/Portal/) |
route_id |
The unique GTFS-compatible identifier for the route for which schedule is returned. Example: "CR-Providence" |
route_name |
The human-readable name for the route for which schedule is returned. Example: "Providence/Stoughton Line" |
trip_id |
The unique GTFS-compatible identifier for the trip for which schedule is returned. Example: "CR-Providence-CR-Weekday-815" |
trip_name |
The human-readable for the trip for which schedule is returned. Example: "815 (4:35 pm from South Station)" |
direction_id |
The GTFS-compatible identifier for the direction. Example: "0" |
direction_name |
The human-readable name for the direction. Example: "Outbound" |
stop_sequence |
Identifies where the stop comes in the sequence of stops for this trip. Example: "2" |
stop_id |
The GTFS-compatible unique identifier for the stop. Example: "Back Bay" |
stop_name |
The GTFS-compatible name for the stop. Example: "Back Bay" |
sch_arr_dt |
Scheduled arrival time at the stop for the trip, in epoch time. Example: "1361986080" |
sch_dep_dt |
Scheduled departure time at the stop for the trip, in epoch time. Example: "1361986080" |
Tpredictionsbytrip
Tschedulebystop
Tschedulebyroute
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.