stops_on_route | R Documentation |
Stops on a given route and route type
stops_on_route(
route_id,
route_type,
direction_id = NULL,
user_id = determine_user_id(),
api_key = determine_api_key()
)
route_id |
Integer. These can be listed and described with the
|
route_type |
A route type which can be provided either as a non-negative
integer code, or as a character: "Tram", "Train", "Bus", "Vline" or "Night
Bus". Character inputs are not case-sensitive. Use the
|
direction_id |
Optionally filter by a direction ID. These can be
obtained with the |
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 |
A tibble with the following columns:
stop_id
stop_name
stop_suburb
route_type
route_type_description
stop_sequence
stop_latitude
stop_longitude
disruption_ids
## Not run:
stops_on_route(6, route_type = "Train")
stops_on_route(6, route_type = 0)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.