Tschedulebytrip: Query schedule by trip

Description Usage Arguments Value See Also

Description

Returns scheduled arrival and departure times for a particular trip.

Usage

1
 Tschedulebytrip(trip_id, datetime = Sys.time(), api_key) 

Arguments

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/)

Value

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"

See Also

Tpredictionsbytrip Tschedulebystop Tschedulebyroute


MBTAr documentation built on May 2, 2019, 6:59 a.m.

Related to Tschedulebytrip in MBTAr...