| disruptions_at_stop {ptvapi} | R Documentation |
Disruptions at a given stop
Description
Disruptions at a given stop
Usage
disruptions_at_stop(
stop_id,
disruption_status = NULL,
user_id = determine_user_id(),
api_key = determine_api_key()
)
Arguments
stop_id |
Integer stop ID. |
disruption_status |
Character. Can be used to filter to either "current" or "planned" disruptions. Defaults to NULL, in which case no filter is applied. |
user_id |
Integer or character. A user ID or devid provided by Public
Transport Victoria. Refer to |
api_key |
Character. An API key, with dashes, provided by Public
Transport Victoria. Refer to |
Value
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
Examples
## Not run:
disruptions_at_stop(1071)
disruptions_at_stop(1071, disruption_status = "current")
## End(Not run)
[Package ptvapi version 2.0.5 Index]