Package: gtfstools 1.4.0.9000

Daniel Herszenhut

gtfstools: General Transit Feed Specification (GTFS) Editing and Analysing Tools

Utility functions to read, manipulate, analyse and write transit feeds in the General Transit Feed Specification (GTFS) data format.

Authors:Daniel Herszenhut [aut, cre], Rafael H. M. Pereira [aut], Pedro R. Andrade [aut], Joao Bazzo [aut], Mark Padgham [ctb], Marcus Saraiva [ctb], Ipea - Institute for Applied Economic Research [cph, fnd]

gtfstools_1.4.0.9000.tar.gz
gtfstools_1.4.0.9000.zip(r-4.7)gtfstools_1.4.0.9000.zip(r-4.6)gtfstools_1.4.0.9000.zip(r-4.5)
gtfstools_1.4.0.9000.tgz(r-4.6-x86_64)gtfstools_1.4.0.9000.tgz(r-4.6-arm64)gtfstools_1.4.0.9000.tgz(r-4.5-x86_64)gtfstools_1.4.0.9000.tgz(r-4.5-arm64)
gtfstools_1.4.0.9000.tar.gz(r-4.7-arm64)gtfstools_1.4.0.9000.tar.gz(r-4.7-x86_64)gtfstools_1.4.0.9000.tar.gz(r-4.6-arm64)gtfstools_1.4.0.9000.tar.gz(r-4.6-x86_64)
gtfstools_1.4.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
gtfstools/json (API)
NEWS

# Install 'gtfstools' in R:
install.packages('gtfstools', repos = c('https://ipeagit.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ipeagit/gtfstools/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

gtfspublic-transportpublictransportcpp

8.07 score 48 stars 4 packages 194 scripts 652 downloads 33 exports 39 dependencies

Last updated from:13c80c39eb. Checks:13 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK152
linux-devel-x86_64OK153
source / vignettesOK234
linux-release-arm64OK149
linux-release-x86_64OK172
macos-release-arm64OK138
macos-release-x86_64OK289
macos-oldrel-arm64OK113
macos-oldrel-x86_64OK208
windows-develOK105
windows-releaseOK244
windows-oldrelOK129
wasm-releaseOK155

Exports:as_dt_gtfsconvert_sf_to_shapesconvert_shapes_to_sfconvert_stops_to_sfconvert_time_to_secondsdownload_validatorfilter_by_agency_idfilter_by_route_idfilter_by_route_typefilter_by_service_idfilter_by_sffilter_by_shape_idfilter_by_spatial_extentfilter_by_stop_idfilter_by_time_of_dayfilter_by_trip_idfilter_by_weekdayfrequencies_to_stop_timesget_children_stopsget_parent_stationget_stop_times_patternsget_trip_durationget_trip_geometryget_trip_lengthget_trip_segment_durationget_trip_speedlist_validator_versionsmerge_gtfsread_gtfsremove_duplicatesset_trip_speedvalidate_gtfswrite_gtfs

Dependencies:askpassbackportscheckmateclassclassIntclicpp11curldata.tableDBIe1071fsgeometriesgluegtfsiohttr2jsonliteKernSmoothlifecyclemagrittrMASSopensslparallellyprocessxproxypsR6rappdirsRcpprlangs2sfsfheaderssysunitsvctrswithrwkzip

Filtering GTFS feeds

Rendered fromfiltering.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2025-01-07
Started: 2021-11-12

Introduction to gtfstools

Rendered fromgtfstools.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2025-01-07
Started: 2021-02-13

Validating GTFS feeds

Rendered fromvalidating.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2025-01-07
Started: 2022-06-24

Readme and manuals

Help Manual

Help pageTopics
Coerce lists and GTFS objects from other packages into gtfstools-compatible GTFS objectsas_dt_gtfs as_dt_gtfs.gtfs as_dt_gtfs.list as_dt_gtfs.tidygtfs
Convert a simple feature object into a 'shapes' tableconvert_sf_to_shapes
Convert 'shapes' table to simple feature objectconvert_shapes_to_sf
Convert 'stops' table to simple feature objectconvert_stops_to_sf
Convert time fields to seconds after midnightconvert_time_to_seconds
Download MobilityData's GTFS validatordownload_validator
Filter GTFS object by 'agency_id'filter_by_agency_id
Filter GTFS object by 'route_id'filter_by_route_id
Filter GTFS object by 'route_type' (transport mode)filter_by_route_type
Filter GTFS object by 'service_id'filter_by_service_id
Filter a GTFS object using a simple features object (deprecated)filter_by_sf
Filter GTFS object by 'shape_id'filter_by_shape_id
Filter a GTFS object using a spatial extentfilter_by_spatial_extent
Filter GTFS object by 'stop_id'filter_by_stop_id
Filter GTFS object by time of dayfilter_by_time_of_day
Filter GTFS object by 'trip_id'filter_by_trip_id
Filter GTFS object by weekdayfilter_by_weekday
Convert frequencies to stop timesfrequencies_to_stop_times
Get children stops recursivelyget_children_stops
Get parent stations recursivelyget_parent_station
Get stop times patternsget_stop_times_patterns
Get trip durationget_trip_duration
Get trip geometryget_trip_geometry
Get trip lengthget_trip_length
Get trip segments' durationget_trip_segment_duration
Get trip speedget_trip_speed
List MobilityData's GTFS validator versionslist_validator_versions
Merge GTFS filesmerge_gtfs
Read GTFS filesread_gtfs
Remove duplicated entriesremove_duplicates
Set trip average speedset_trip_speed
Validate GTFS feedvalidate_gtfs
Write GTFS fileswrite_gtfs