Skip to content

Add realtime debug export methods for easier debugging - #17

Merged
chtitux merged 2 commits into
mainfrom
claude/export-realtime-debug-methods-011CUrRAGrfgF9M6PT5kuLmu
Nov 6, 2025
Merged

chtitux merged 2 commits into
mainfrom
claude/export-realtime-debug-methods-011CUrRAGrfgF9M6PT5kuLmu

Conversation

@chtitux

@chtitux chtitux commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

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 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.
@chtitux
chtitux merged commit 2b57e3b into main Nov 6, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants