Man pages for gtfstools
General Transit Feed Specification (GTFS) Editing and Analysing Tools

as_dt_gtfsCoerce lists and GTFS objects from other packages into...
assert_shapes_fieldsAssert the shapes (and trips) fields needed to work with...
assert_trip_stops_fieldsAssert the stop_times and stops fields needed to work with...
build_graphBuild a transit network graph
build_linestringsBuild linestrings from sequences of points
build_service_networkBuild the nodes and links of a transit network
build_shape_cutsBuild the geometries of parts of shapes
build_timetableBuild a timetable
calculate_vktCalculate the vehicle-kilometres travelled by groups of trips
calendar_service_intervalsGet the weekday intervals of the calendar entries
check_deprecated_sort_sequenceRaise the deprecation condition of the 'sort_sequence'...
check_stop_pair_countCheck the number of pairs of stops before comparing them
cluster_stop_nodesCluster stop nodes by distance
combine_nearby_stopsCombine nearby stops
convert_from_standardConvert a standards-compliant GTFS into a gtfstools' GTFS
convert_seconds_to_timeConvert seconds after midnight to time strings
convert_sf_to_shapesConvert a simple feature object into a 'shapes' table
convert_shapes_to_sfConvert 'shapes' table to simple feature object (deprecated)
convert_stops_to_sfConvert 'stops' table to simple feature object (deprecated)
convert_stops_to_shapesConvert stops into shapes
convert_time_to_secondsConvert time fields to seconds after midnight
convert_to_standardConvert a gtfstools' GTFS into a standards-compliant GTFS
copy_gtfs_diff_field_classMake a GTFS copy with a field of a different class
copy_gtfs_without_fieldMake a GTFS copy without a given field from a given file
copy_gtfs_without_fileMake a GTFS copy without a given file
crop_gtfsCrop a GTFS object to a spatial extent
dates_to_periodsCollapse days into periods of consecutive days
date_to_integerConvert a Date vector into an integer vector
download_validatorDownload MobilityData's GTFS validator
empty_service_networkCreate an empty transit network
empty_trip_lengthCreate an empty output of 'get_trip_length()'
filter_by_agency_idFilter GTFS object by 'agency_id'
filter_by_dateFilter GTFS object by date
filter_by_periodFilter GTFS object by period
filter_by_route_idFilter GTFS object by 'route_id'
filter_by_route_typeFilter GTFS object by 'route_type' (transport mode)
filter_by_service_idFilter GTFS object by 'service_id'
filter_by_sfFilter a GTFS object using a simple features object (defunct)
filter_by_shape_idFilter GTFS object by 'shape_id'
filter_by_spatial_extentFilter a GTFS object using a spatial extent
filter_by_stop_idFilter GTFS object by 'stop_id'
filter_by_time_of_dayFilter GTFS object by time of day
filter_by_trip_idFilter GTFS object by 'trip_id'
filter_by_weekdayFilter GTFS object by weekday
find_stop_pairs_withinFind the pairs of stops within a distance of each other
first_departure_per_tripGet the earliest departure of each trip
fix_gtfsFix common problems in GTFS feeds
frequencies_to_stop_timesConvert frequencies to stop times
get_active_servicesGet active services
get_calendar_overlapGet calendar overlap
get_children_stopsGet children stops recursively
get_datesGet service dates
get_dwell_timeGet dwell time
get_frequencies_departuresGet the departures generated by frequencies entries
get_parent_stationGet parent stations recursively
get_route_frequencyGet route frequency
get_route_geometryGet route geometry
get_route_speedGet route speed
get_route_timetableGet route timetable
get_service_daysGet the service days of a GTFS object and their number of...
get_service_periodGet the service days of a GTFS object
get_services_on_daysGet the services that run on the given days
get_service_weightsGet the number of trips each service runs on a day
get_shape_lengthGet shape length
get_shapes_geometryGet the 'shapes' table with spatial geometry
get_start_and_end_timesGet start and end times
get_stop_distancesGet distances between stops
get_stop_frequencyGet stop frequency
get_stop_node_keysGet the node of each stop
get_stopsGet stops
get_stops_geometryGet the 'stops' table with spatial geometry
get_stop_times_patternsGet stop times patterns
get_stop_timetableGet stop timetable
get_summaryGet a summary of a GTFS feed
get_trip_departuresGet the departure times of trips
get_trip_durationGet trip duration
get_trip_geometryGet trip geometry
get_trip_lengthGet trip length
get_trip_segment_durationGet trip segments' duration
get_trip_speedGet trip speed
get_usable_shapesGet the usable shapes of a shapes table
get_vktGet vehicle-kilometres travelled
get_vmtGet vehicle-miles travelled
gtfstoolsgtfstools: General Transit Feed Specification (GTFS) Editing...
has_shapesCheck whether a GTFS object has shapes linked to its trips
infer_trip_directionsInfer the direction of trips
integer_to_dateConvert an integer vector into a Date vector
interpolate_cropped_tripsInterpolate the times of cropped trips
interpolate_shape_dist_traveledInterpolate the distances travelled along shapes
interpolate_stop_timesInterpolate missing stop times
is_blank_timeCheck which time strings are blank
list_validator_versionsList MobilityData's GTFS validator versions
locate_cropped_trip_cutsLocate the cuts of the shapes of cropped trips
locate_stops_along_shapesLocate stops along their trips' shapes
map_deprecated_fileMap the deprecated 'file' argument to 'method'
match_stop_times_rowsMatch stop_times entries by trip and stop sequence
max_stop_pairs_without_warningMaximum number of stop pairs without a warning
merge_gtfsMerge GTFS files
merge_service_intervalsMerge the overlapping calendar intervals of each service and...
parse_datesParse dates given as 'Date's or strings
paste_stop_namesPaste stop names
prepare_shape_pointsSelect and sort the shape points
prepare_trip_stopsSelect and prepare the stop_times of the relevant trips
read_gtfsRead GTFS files
refresh_secs_columnsRefresh the *_secs columns of a table after its time strings...
remove_duplicatesRemove duplicated entries
remove_unused_idsRemove unused ids
replace_cropped_shapesReplace the shapes of cropped trips by their cuts
replace_stop_idsReplace stop_ids
report_deps_availableCheck whether the report dependencies are available
resolve_shapes_methodFall back to the euclidean method when a GTFS object has no...
route_type_idsGet the 'route_id's of the given 'route_type's
seconds_to_stringConvert seconds after midnight to time string
set_dwell_timeSet dwell time
set_max_speedSet trip maximum speed
set_min_dwell_timeSet a minimum dwell time
set_route_frequencySet route frequency
set_route_speedSet route average speed
set_trip_speedSet trip average speed
shape_point_distancesDistance from each shape point to the previous one
shift_cropped_frequenciesShift the frequencies of cropped trips
stop_id_referencesFields that refer to stop_ids, by file
stop_times_to_frequenciesConvert stop times to frequencies
string_to_secondsConvert time string to seconds after midnight
summarise_distributionSummarise a distribution
summarise_route_frequencyCalculate the route headways of a feed on its busiest day
summarise_servicesSummarise the calendar of the services of a feed
sum_or_naSum a vector, or return NA if it has no values
time_of_day_windowConvert a time of day to seconds and check its order
time_secsGet the times of a column in seconds after midnight
validate_gtfsValidate GTFS feed
warn_invalid_idsWarn about ids missing from a table, with cli
warn_missing_idsWarn about ids missing from a table
warn_times_not_interpolatedWarn about stop times that couldn't be interpolated
warn_trips_without_shapeWarn about trips not linked to a usable shape
write_gtfsWrite GTFS files
write_summary_reportWrite and render the report of get_summary()
gtfstools documentation built on Oct. 28, 2026, 5:13 p.m.