Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routes added by modifications are not recognizable in paths output #909

Open
abyrd opened this issue Nov 8, 2023 · 1 comment
Open

Routes added by modifications are not recognizable in paths output #909

abyrd opened this issue Nov 8, 2023 · 1 comment

Comments

@abyrd
Copy link
Member

abyrd commented Nov 8, 2023

The route IDs given in CSV path output are the GTFS route IDs when the routes are taken from a GTFS file. The IDs for routes created by modifications are randomly assigned, and in the path text/CSV there's no way to tell which modification created them.

It should be possible to change the way these IDs are assigned, but I don't believe the modification ID is currently available when constructing the R5 modification for this purpose.

The route_short_name and route_long_name fields that exist in GTFS also exist on the routes created by modifications, and are set to the name the user gave to the modification. There is a switch within the source code that will include these long/short names in the text output, but I believe the only way to enable that switch is changing source code.

We can't use user-supplied input as the ID for routes created by modifications, because other parts of the system must be able to assume these route IDs are unique. As long as modifications never make more than one route, the modification ID should be useable as a unique route ID. This still requires the user to look up modifications by ID to understand the paths. The same might be true with GTFS-supplied routes. The output is a lot easier to read if it includes user-specified names or GTFS-supplied short names that are not absolutely guaranteed to be unique but are immediately meaningful to the user.

@abyrd
Copy link
Member Author

abyrd commented Dec 29, 2023

Any solution to this issue should be coordinated with #920. If we decide to add a new field revealing the feed scope of route and stop IDs, then that new field could also indicate a which modification a route came from using the unique modification ID (which is never expected to collide with any unique feed identifier).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant