Skip to content

GTFS-RT > TripDescriptor matching improvement #116

Closed

Description

@mmathieum

trip_id is quickly outdated/out-of-sync between local static and online real-time data.

For non-frequency based schedule (99%):

  • trip_id (& start_date) (& start_time?)
  • route_id & direction_id (& start_date) & start_time
  • start_date is optional because we can guess the "current" trip by picking the closest one.

Current MT implementation:

  • if TripDescriptor contains a trip_id, it must match
  • if TripDescriptor contains a route_id, it must match
  • if TripDescriptor contains a direciton_id (& not ignored), it must match
  • (Alerts only) must also match on stop_id, route_type, agency_id if in TripDescriptor

Current MT fallback for trip IDs mismatch:

  • Service Alerts: primary target UUID (route+direction+stop)
  • Vehicle Positions: primary target UUID (route+direction)
  • Trip Updates: (none)

Issues:

Links:

Activity

  1. self-assigned this
    on Apr 9, 2026
  2. added
    P2
    on Apr 9, 2026
  3. added theissue type on Apr 9, 2026
  4. mmathieum commented on May 4, 2026

    @mmathieum
    MemberAuthor

    OC Transpo: trip IDs to not match at all. Even stop IDs do not match 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions