run_to_tibble: Convert a single run to a tibble

View source: R/runs.R

run_to_tibbleR Documentation

Convert a single run to a tibble

Description

This function is designed to parse the content returned by the interior steps of the runs_on_route and run_information functions.

Usage

run_to_tibble(run)

Arguments

run

A run, as a list, returned by the runs API call.

Value

A tibble with the following columns:

  • run_id (deprecated, use run_ref instead)

  • run_ref

  • route_id

  • route_type

  • route_type_description

  • direction_id

  • run_sequence

  • final_stop_id

  • destination_name

  • status

  • express_stop_count

  • vehicle_position

  • vehicle_descriptor

  • geopath


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