Skip to content

Best Practices: Reasonable lengths in unique ids #518

Open
@skinkie

Description

@skinkie

Describe the problem

Today, I was confronted with a GTFS feed that used 100+ character IDs for individual trip_ids. You may guess what the size of the feed looked like. Their old feeds used only 8 digits as trip_id.

Use cases

Efficient resource usage.

Proposed solution

I want to propose a 36 byte soft limit as best practice for any identifier used in GTFS. A UUID would fit, I would say even a NeTEx ServiceJourney or ScheduledStopPoint identifier would fit as whole. If a value exceeds 36 bytes, a nice warning can and should be presented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Change: Best PracticeChanges focusing on recommendations for optimal use of the specification.GTFS ScheduleIssues and Pull Requests that focus on GTFS ScheduleStatus: DiscussionIssues and Pull Requests that are currently being discussed and reviewed by the community.Support: Needs Feedback

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions