Learn R Programming

ptvapi (version 2.0.5)

stop_to_tibble: 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)

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

Arguments

stop

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