Skip to contents

Collect

Archive ephemeral GTFS-Realtime endpoints as daily ZIPs of raw .pb polls. The collector never parses protobuf.

rt2s_collect()
Continuously Archive GTFS-Realtime Feeds
rt2s_archive_rotate()
Roll Finished Archive Days into Daily ZIPs
rt2s_archive_coverage()
Archive Coverage and Gap Report
rt2s_service_template()
Generate a Supervised-Service Template for the Collector

Events

Reduce Trip Updates or gps2gtfs stop times to the canonical observed stop events table: one row per trip, stop and service date, with provenance.

rt2s_events_from_trip_updates()
Observed Stop Events from GTFS-Realtime Trip Updates
rt2s_events_from_stop_times()
Observed Stop Events from gps2gtfs Stop Times
rt2s_events_validate()
Validate an Observed Stop Events Table

Summarise

Reduce many observed runs to headway, travel-time and dwell quantiles and to a cross-trip stop order.

rt2s_obs_headways()
Observed Headways per Route-Direction and Time Window
rt2s_obs_travel_times()
Observed Travel-Time and Dwell Quantiles per Stop
rt2s_obs_stop_order()
Cross-Trip Canonical Stop Order for Each Route-Direction
rt2s_time_window()
Classify Times of Day into Named Service Windows

Baseline

Read a planned static feed: canonical stop patterns, scheduled headways, and the dates a service runs.

rt2s_baseline_patterns()
Canonical Published Stop Pattern per Route-Direction
rt2s_baseline_headways()
Planned Headways per Route-Direction and Time Window
rt2s_baseline_service_dates()
Service Dates of a Named Baseline Service

Assemble

Merge events into a planned feed, scaffold a compliant feed from scratch, or collapse many runs into frequency-based feeds.

rt2s_assemble()
Assemble a Realized GTFS Feed from Observed Stop Events
rt2s_scaffold()
Scaffold a Standard-Compliant GTFS Feed from Observed Stop Events
rt2s_frequencies()
Assemble Frequency-Based Realized GTFS Feeds (One per Reliability Quantile)
rt2s_resolved_grid()
Resolved Headway-Group Grid Behind a Frequency Feed Set

Concepts

observed-stop-events
The Observed Stop Events Schema
gtfsrt2static gtfsrt2static-package
gtfsrt2static: Realized Static GTFS Snapshots from GTFS-Realtime and GPS-Derived Observations

Helpers

rt2s_publishable()
Publish-Readiness of an Assembled Feed
rt2s_monotone_offsets()
Make Stop-Time Offsets Monotone