route_information {ptvapi} | R Documentation |
Information for a given route
Description
Information for a given route
Usage
route_information(
route_id,
include_geopath = FALSE,
geopath_utc = NULL,
user_id = determine_user_id(),
api_key = determine_api_key()
)
Arguments
route_id |
Integer. These can be listed and described with the
|
include_geopath |
Logical. Whether to populate the |
geopath_utc |
Date, or character that can be converted to a date. The
UTC date for which the geopaths are effective. Defaults to the current
date. Has no effect if |
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 of routes, with the following columns:
-
route_id
-
route_gtfs_id
-
route_name
-
route_type
-
route_type_description
-
route_number
-
geopath
-
service_status
-
service_status_timestamp
Examples
## Not run:
route_information(6)
route_information(6, include_geopath = TRUE)
route_information(6, include_geopath = TRUE, geopath_utc = "2020-07-01")
## End(Not run)