filter_single_trip: Filter GTFS trips in order to have one trip per shape_id

View source: R/filter_gtfs.R

filter_single_tripR Documentation

Filter GTFS trips in order to have one trip per shape_id

Description

Filter a GTFS data by keeping only one trip per shape_id. It also removes the unnecessary routes and stop_times accordingly.

Usage

filter_single_trip(gtfs_data)

Arguments

gtfs_data

A list of data.tables read using gtfs2gps::reag_gtfs().

Value

A filtered GTFS data.

Examples

poa <- read_gtfs(system.file("extdata/poa.zip", package = "gtfs2gps"))

subset <- filter_single_trip(poa)

gtfs2gps documentation built on April 29, 2023, 1:12 a.m.