Returns a set of buses scheduled at a stop for a given date.
7-digit regional stop ID.
(Optional) Date for which to retrieve route and stop information.
Subscription key which provides access to this API. Defaults
A tibble with 1 row per bus departure and 8 variables:
Date and time (UTC) when the bus is scheduled to stop at this location.
Denotes a binary direction (0 or 1) of the bus. There
is no specific mapping to direction, but a different value for the same
route signifies that the buses are traveling in opposite directions. Use
TripDirectionText column to show the actual destination of the bus.
Scheduled start date and time (UTC) for this trip.
Scheduled end date and time (UTC) for this trip.
Bus route variant identifier (pattern). This variant can be used in several other bus methods which accept variants. Note that customers will never see anything other than the base route name, so variants 10A, 10Av1, 10Av2, etc. will be displayed as 10A on the bus.
General direction of the trip (e.g.: NORTH, SOUTH, EAST, WEST).
Destination of the bus.
Trip identifier. This can be correlated with the data in our bus schedule information as well as bus positions.
Data frame containing scheduled arrival information.
1 2 3 4
## Not run: bus_departs(1001195, "2021-01-01") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.