-
Notifications
You must be signed in to change notification settings - Fork 101
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
Implement minimum transfer time verification #159
Comments
This is another rule that may need to be configurable - the "not greater than 24 hrs" doesn't appear in the spec or best practices: It's worth noting that the best practices say:
|
@barbeau @timMillet Should every threshold verified by the Python validator be treated as warnings in our validator? Therefore not a GTFS error, but still verifying the Python validator rules. |
@maximearmstrong IMHO it should be considered on a case-by-case basis. The problem with labeling rules as warnings is that some producers tend to ignore everything that's not an error. If there are clear, common cases of bad data IMHO it makes sense to have an error for a threshold. The (0,0) bus stop location is one example. Some (like this min transfer time rule) may be a bit fuzzier and require some discussion in the community of what an error threshold should be. One data-driven approach is to programmatically examine all the feds from OpenMobilityData.org and pick the 95th percentile as the error threshold. |
We are considering making numeric thresholds user configurable to notice producers that although the data is syntactically correct (here min_transfer_time >0), the value is too small or too big. See related comments: #71 (comment) |
Is your feature request related to a problem? Please describe.
Minimum transfer time should be present and valid. This is a GTFS rule implemented in Google Python validator and featured in Google Type Error as TYPE_TRANSFER_MIN_TRANSFER_TIME_AND_INVALID_TYPE, TYPE_TRANSFER_MIN_TRANSFER_TIME_IS_MISSING, TYPE_TRANSFER_MIN_TRANSFER_TIME_IS_NEGATIVE and TYPE_TRANSFER_MIN_TRANSFER_TIME_IS_VERY_LARGE.
Describe the solution you'd like
Actual Google GTFS validator behaviour : verifies if minimum transfer time is not missing, if it's not negative, nor equal or greater than 24h.
Describe alternatives you've considered
Additional context
Line 124, 125, 126 and 127 in Error support priorities https://docs.google.com/spreadsheets/d/1vqe6wq7ctqk1EhYkgtZ0_TbcQ91vccfs2daSjn20BLE/edit#gid=0
The text was updated successfully, but these errors were encountered: