Learn R Programming

ptvapi (version 2.0.5)

geopath_to_tibble: Convert a single geopath to a tibble

Description

This function is designed to parse the geopath content returned by the interior steps of some functions. If geopath data is requested, that content will contain a list of geopaths for each route. This function is designed to parse one of those geopaths into a tibble.

Usage

geopath_to_tibble(geopath)

Value

A tibble of routes, with the following columns:

  • direction_id

  • valid_from

  • valid_to

  • paths

Arguments

geopath

A geopaths object, as a list