stop_to_tibble: Convert a single stop to a tibble

View source: R/stops.R

stop_to_tibbleR Documentation

Convert a single stop to a tibble

Description

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

Usage

stop_to_tibble(stop)

Arguments

stop

A stop, as a list, returned by a stops API call.

Value

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


ptvapi documentation built on Aug. 15, 2022, 5:09 p.m.