Package: gtfstools 1.3.0

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.3.0.tar.gz
gtfstools_1.3.0.tar.gz(r-4.5-noble)gtfstools_1.3.0.tar.gz(r-4.4-noble)
gtfstools_1.3.0.tgz(r-4.4-emscripten)gtfstools_1.3.0.tgz(r-4.3-emscripten)
gtfstools.pdf |gtfstools.html
gtfstools/json (API)
NEWS

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

Peer review:

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

Pkgdown:https://ipeagit.github.io

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

cpp

5.33 score 4 packages 120 scripts 802 downloads 32 exports 28 dependencies

Last updated 3 months agofrom:4e6702fb15. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 07 2024
R-4.5-linux-x86_64OKDec 07 2024

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_speedmerge_gtfsread_gtfsremove_duplicatesset_trip_speedvalidate_gtfswrite_gtfs

Dependencies:backportscheckmateclassclassIntclicurldata.tableDBIe1071fsgeometriesgtfsiojsonliteKernSmoothmagrittrMASSparallellyprocessxproxypsR6Rcpps2sfsfheadersunitswkzip

Filtering GTFS feeds

Rendered fromfiltering.Rmdusingknitr::rmarkdownon Dec 07 2024.

Last update: 2024-10-08
Started: 2021-11-16

Introduction to gtfstools

Rendered fromgtfstools.Rmdusingknitr::rmarkdownon Dec 07 2024.

Last update: 2024-10-08
Started: 2021-02-23

Validating GTFS feeds

Rendered fromvalidating.Rmdusingknitr::rmarkdownon Dec 07 2024.

Last update: 2024-10-08
Started: 2022-11-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
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