Learn R Programming

gtfstools (version 2.0.1)

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

Value

A character vector with the node of each stop.

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.