| stop_information {ptvapi} | R Documentation |
Information for a given stop (metropolitan and V/Line stations only)
Description
This function can be used when integer stop ID is already known. This can be
searched for with either the stops_on_route or
stops_nearby functions.
Usage
stop_information(
stop_id,
route_type,
user_id = determine_user_id(),
api_key = determine_api_key()
)
Arguments
stop_id |
Integer stop ID. |
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
|
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 single-row tibble with the following columns:
stop_idstop_nameroute_typeroute_type_descriptionstation_details_idstation_typestation_descriptionpoint_idmode_idoperating_hoursflexible_stop_opening_hoursstop_contactstop_ticketstop_locationstop_amenitiesstop_accessibilitystop_staffingdisruption_ids