Skip to content

Relax GTFS transfer validation and error logging#984

Merged
ansoncfit merged 2 commits intodevfrom
abyrd/tolerate-transfer-specificity
Dec 8, 2025
Merged

Relax GTFS transfer validation and error logging#984
ansoncfit merged 2 commits intodevfrom
abyrd/tolerate-transfer-specificity

Conversation

@abyrd
Copy link
Copy Markdown
Member

@abyrd abyrd commented Dec 3, 2025

This is a minimal first step toward #983, consisting of cherry-picking a single commit from that PR branch. It updates GTFS loading to tolerate a wider range of transfer types in the input data, even if we're not going to use all those types in preparing the routable network. It also bypasses the referential integrity checking on transfer specificity fields that only occur on transfer rows we do not actually use, since some commonly used feeds apparently have invalid values in thousands of such rows.

I have tested this on the MBTA feed and am able to build a network and route on it.

This also demotes one log message from ERROR to INFO, since that message appears in normal operation on almost every valid input file.

@abyrd abyrd force-pushed the abyrd/tolerate-transfer-specificity branch from ad3b35b to 397885b Compare December 4, 2025 08:49
@ansoncfit ansoncfit merged commit 05ab57f into dev Dec 8, 2025
3 checks passed
@ansoncfit ansoncfit deleted the abyrd/tolerate-transfer-specificity branch December 8, 2025 01:00
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