google / google/transit

What would be the recommended way to represent such a custom presentation order for routes in GTFS?

Open
#652 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1.1k
Forks
225
Avg merge
7d 17h
Merged PRs (30d)
3

Description

### Introduce yourself

_No response_

### Ask a question

We are working on a passenger-facing application where routes need to be grouped and displayed according to their transport mode and submode. We would like to define a specific presentation priority for these categories, independently of the individual route ordering.

In our use case, we want to group and display routes according to their transport route_type, with a specific business-defined priority.

For example, we would like routes with route_type=200 be displayed first, followed by route_type = 712, etc...

Does GTFS provide a standard mechanism to define such a presentation order ?

We are aware of routes.route_sort_order, but this appears to define the order of individual routes rather than the priority of route categories. Would route_sort_order be the appropriate mechanism for this use case, or is there another recommended approach?

Thanks,
Pauline

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the GTFS documentation for routes.route_type and routes.route_sort_order, then check whether the specification describes category-level presentation priorities. Done means providing a documented recommendation that directly addresses the example ordering and explains whether an existing field applies.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.