directions_on_route: Directions on a given route

View source: R/directions.R

directions_on_routeR Documentation

Directions on a given route

Description

Directions on a given route

Usage

directions_on_route(
  route_id,
  user_id = determine_user_id(),
  api_key = determine_api_key()
)

Arguments

route_id

Integer. These can be listed and described with the routes function.

user_id

Integer or character. A user ID or devid provided by Public Transport Victoria. Refer to ?ptvapi for more details.

api_key

Character. An API key, with dashes, provided by Public Transport Victoria. Refer to ?ptvapi for more details.

Value

A tibble consisting of the following columns:

  • direction_id

  • direction_name,

  • route_id

  • route_type

  • route_type_description

  • route_direction_description

Examples

## Not run: 
directions_on_route(6)

## End(Not run)

ptvapi documentation built on May 29, 2024, 4:48 a.m.