powered by
Disruptions on a given route
disruptions_on_route( route_id, stop_id = NULL, disruption_status = NULL, user_id = determine_user_id(), api_key = determine_api_key() )
A tibble with the following columns:
disruption_mode
disruption_mode_description
disruption_id
title
url
description
disruption_status
disruption_type
published_on
last_updated
from_date
to_date
routes
stops
colour
display_on_board
display_status
Integer. These can be listed and described with the routes function.
Integer. Optionally filter results to a specific stop ID. These can be searched for with the stops_on_route and stops_nearby functions.
stops_on_route
stops_nearby
Character. Can be used to filter to either "current" or "planned" disruptions. Defaults to NULL, in which case no filter is applied.
Integer or character. A user ID or devid provided by Public Transport Victoria. Refer to ?ptvapi for more details.
?ptvapi
Character. An API key, with dashes, provided by Public Transport Victoria. Refer to ?ptvapi for more details.
if (FALSE) { disruptions_on_route(6) disruptions_on_route(6, stop_id = 1071) disruptions_on_route(6, disruption_status = "current") }
Run the code above in your browser using DataLab