Skip to content

GTFS-RT > TripDescriptor matching improvement #116

@mmathieum

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:

Metadata

Metadata

Assignees

Labels

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions