Learn R Programming

gtfstools (version 2.0.1)

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

Value

A character vector of route_ids.

Arguments

gtfs

A GTFS object, as created by read_gtfs().

route_type

An integer vector of route_types.