Skip to content

[GTFS Fares v2] Update forbidden for network_id in routes.txt if networks.txt exists too#75

Closed
skalexch wants to merge 3 commits intomasterfrom
adjust_networks
Closed

[GTFS Fares v2] Update forbidden for network_id in routes.txt if networks.txt exists too#75
skalexch wants to merge 3 commits intomasterfrom
adjust_networks

Conversation

@skalexch
Copy link

@skalexch skalexch commented Sep 25, 2025

Summary

This is just a simple adjustment to make sure the reference is consistent. In google#405 where networks.txt and route_networks.txt were proposed, the community decided to keep a separation between network_id in routes.txt on one side and networks.txt+route_networks.txt on the other side (to maintain backward compatibility since the features were introduced at different times).

Describe the Problem

The spec mention clearly in the dataset section that networks.txt and route_networks.txt are forbidden if network_id exists in routes.txt. However, for network_id in routes.txt itself, it only says that the field is forbidden if route_networks.txt exists (ONLY, and not networks.txt as well).

Use Cases

Proposed Solution

Add networks.txt to files that forbid the existence of network_id in routes.txt

This is a documentation change, since the change is just to maintain consistency in the reference file.

Type of change

GTFS Schedule

  • Functional Change
  • Non-Functional Change
  • Documentation Maintenance

GTFS Realtime

  • Specification Change
  • Specification Change (Experimental Field)

Proposed Discussion Period

In compliance with the governance, I propose a 7-day discussion period followed by 7 days for reviewing. If there's no issue, this PR can be merged directly.

Proposal Update Tracker

Date Update Description
(2025-09-25) Raised PR

Checklist

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@skalexch skalexch changed the title Update forbidden for routes.txt's network_id if networks.txt exists too Update forbidden for network_id in routes.txt if networks.txt exists too Sep 25, 2025
@skalexch skalexch changed the title Update forbidden for network_id in routes.txt if networks.txt exists too [GTFS Fares v2] Update forbidden for network_id in routes.txt if networks.txt exists too Sep 26, 2025
@skalexch skalexch force-pushed the adjust_networks branch 2 times, most recently from adde50f to 770fbcd Compare October 14, 2025 16:42
@skalexch skalexch closed this Nov 6, 2025
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

Successfully merging this pull request may close these issues.

2 participants