route_type_ids: Get the 'route_id's of the given 'route_type's

View source: R/utils.R

route_type_idsR Documentation

Get the route_ids of the given route_types

Description

Returns the route_ids listed in routes with any of the given route_types. Types not listed in routes are ignored. Also checks the trips table, which the callers use to get the trips of these routes, so that a feed without it raises an error instead of selecting nothing.

Usage

route_type_ids(gtfs, route_type)

Arguments

gtfs

A GTFS object, as created by read_gtfs().

route_type

An integer vector of route_types.

Value

A character vector of route_ids.


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