Repository navigation
Add realtime debug export methods for easier debugging - #17
Merged
chtitux merged 2 commits intoNov 6, 2025
Merged
Conversation
This commit adds comprehensive debug export methods for all GTFS-RT data types, making it easier to inspect and debug realtime data without staleness filtering. Changes: - Add query functions for trip updates and stop time updates - Export parsing functions from rt-vehicle-positions and rt-trip-updates - Add 4 new debug export methods to GtfsSqlJs class: * debugExportAllAlerts() - exports all alerts * debugExportAllVehiclePositions() - exports all vehicle positions * debugExportAllTripUpdates() - exports all trip updates * debugExportAllStopTimeUpdates() - exports all stop time updates with metadata - Refactor trips.ts to use shared parsing functions, eliminating code duplication - Export TripUpdate, StopTimeUpdateWithMetadata, and filter types in index.ts - Add getAllX() functions to all RT query files for debug exports All methods are properly typed and exported for TypeScript usage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds comprehensive debug export methods for all GTFS-RT data types, making it easier to inspect and debug realtime data without staleness filtering.
Changes:
Add query functions for trip updates and stop time updates
Export parsing functions from rt-vehicle-positions and rt-trip-updates
Add 4 new debug export methods to GtfsSqlJs class:
Refactor trips.ts to use shared parsing functions, eliminating code duplication
Export TripUpdate, StopTimeUpdateWithMetadata, and filter types in index.ts
Add getAllX() functions to all RT query files for debug exports
All methods are properly typed and exported for TypeScript usage.