Returns travel time performance statistics for many sets of trips with specified origin-destination pairs and specific time periods.
Ttravelperformance(enter_time, exit_time = NULL, enter_route_name, exit_route_name,
enter_stop_name, exit_stop_name, data, api_key)
Name of column in data that specifies entrance times for the trips for which performance is to be returned.
Name of column in data that specifies exit times for the trips for which performance is to be returned. Defaults to 30 minutes from the enter_time value.
Name of column in data that specifies GTFS-compatible route ID for entrance stations.
Name of column in data that specifies GTFS-compatible route ID for exit stations. Travel time API request only available for single unlinked rides as of Release v2.
Name of column in data that specifies human-readable text name for the stop where trips began (origin name).
Name of column in data that specifies human-readable text name for the stop where trips ended (destination name).
Dataframe from which holds the previously named arguments.
API key for MBTA API. To obtain one, visit the MBTA Developer Portal (https://mbta.com/developers/mbta-performance/)
Dataframe containing the following:
Mean travel time between origin and destination stops during the time period specified.
Benchmark travel times between origin and destination stops during the time period specified. Benchmarks come from historical data over the past 30 days for travel times.
Average travel time as a proportion of the benchmark time, or traveltime_mean/traveltime_bench.