Skip to contents

Package overview

GTFSwizard GTFSwizard-package
GTFSwizard: Create, Explore, and Edit GTFS Feeds

Create, read, and export feeds

Build the GTFSwizard object used throughout the package.

create_gtfs()
Create a GTFS Feed from Tables
read_gtfs()
Read a GTFS Feed
as_wizardgtfs()
Convert a GTFS Feed to `wizardgtfs`
write_gtfs()
Write a GTFS Feed
merge_gtfs()
Merge Two GTFS Feeds

Filter, select, and group

Focus an analysis while retaining a valid, internally consistent feed.

Analyze scheduled service

Calculate service patterns and planning or operational indicators.

get_servicepattern()
Identify Recurring Daily Service Patterns
get_frequency()
Calculate Scheduled Service Frequency
get_headways()
Calculate Scheduled Headways
get_dwelltimes()
Calculate Dwell Times in GTFS Data
get_durations()
Calculate Trip Durations in GTFS Data
get_distances()
Calculate Distances in GTFS Data
get_speeds()
Calculate Scheduled Speeds
get_fleet()
Estimate Simultaneous Vehicles
get_1stdeparture()
Get the First Departure of Each Trip

Analyze geography and networks

Work with stops, shapes, corridors, hubs, and metric coordinate systems.

get_stops_sf()
Convert GTFS Stops to Simple Features
get_shapes()
Infer Straight-Line Shapes from Stop Sequences
get_shapes_sf()
Convert GTFS Shapes to Simple Features
get_shapes_df()
Convert Shape Geometries to a GTFS Shapes Table
latlon2epsg()
Transform Spatial Data to a Local Metric CRS
get_corridor()
Identify High-Frequency Transit Corridors
get_hubs()
Identify Stops Serving Multiple Routes

Edit scheduled service

Apply timetable and trip-structure scenarios to a copy of a feed.

delay_trip()
Shift Trips in Time
split_trip()
Split Trips into Consecutive Parts
edit_speed()
Scale In-Vehicle Travel Speed
set_dwelltime()
Set Dwell Times
edit_dwelltime()
Scale Dwell Times

Visualize feeds and service

Produce the package’s consistent static network and service plots.

print(<wizardgtfs>) summary(<wizardgtfs>) print(<summary.wizardgtfs>) plot(<wizardgtfs>)
Print, Summarize, and Plot `wizardgtfs` Objects
plot_calendar()
Plot the GTFS Service Calendar
plot_frequency()
Plot System Frequency by Hour
plot_routefrequency()
Plot Route Frequency by Hour
plot_headways()
Plot System Headway by Hour
plot_servicespan()
Plot Scheduled Service Span by Route
plot_serviceheatmap()
Plot Average Scheduled Departures by Weekday and Hour
plot_routeduration()
Plot Scheduled Trip Duration by Route
plot_servicesupply()
Plot Scheduled Vehicle-Hours by Route
plot_corridor()
Plot High-Frequency Corridors
plot_hubs()
Plot Transit Hubs

Explore and route interactively

explore_gtfs()
Explore GTFS Data in an Interactive Shiny Dashboard
tidy_raptor()
Calculate Travel Times with RAPTOR Algorithm

Example feeds

for_bus_gtfs
GTFS Data for Fortaleza (Bus System), Brazil.
for_rail_gtfs
GTFS Data for Fortaleza (Rail System), Brazil