Skip to content

Add INFO notice for long trip_ids #2062

@skalexch

Description

@skalexch

Describe the problem

Multiple community members support adding a recommendation on the length of trip_id (Issue#518).

While the conversation is still ongoing, it would be nice if we add an INFO alert when the trip_id exceeds a certain threshold.
The current threshold can be chosen based on empirical values. Using the latest GTFS datasets we have in the Mobility Database, we look at the outliers. Based on the 95th percentiles values of the Median length and Max length of trip_ids in GTFS feeds, we can choose a value like THRESHOLD = 40. We can also be a bit nifty and choose THRESHOLD = 32, but it will flag more trip_ids.

Image

Image

If the recommendation is adopted in the spec, we can then:

  • Upgrade the notice to a WARNING.
  • Change the threshold based on what the community agreed on.

Describe the new validation rule

If any trip_id > THRESHOLD → Raise INFO notice.

Sample GTFS datasets

No response

Severity

INFO

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions