get_stop_node_keys: Get the node of each stop

get_stop_node_keysR Documentation

Get the node of each stop

Description

Groups stops by parent station: the node of a stop is its topmost parent. Parents that are other stops are followed up to a stop without parent, by pointer doubling, and the parent of that stop, if any, is the node.

Usage

get_stop_node_keys(stop_id, parent_station, ignored_parents)

Arguments

stop_id

A character vector of stop_ids, without duplicates.

parent_station

A character vector with the parent of each stop, or NULL.

ignored_parents

A character vector of stop_ids that are not considered parents.

Value

A character vector with the node of each stop.


gtfstools documentation built on Oct. 28, 2026, 5:13 p.m.