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

UnusableTrip as warning #213

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Here is a human friendly list of them :
| DuplicateStopSequence | Error | Several stop times in a trip have the same `stop_sequence` value. The stop_sequence values within a trip must be unique. |
| ExtraFile | Information | The file does not belong to a GTFS archive |
| UnusedShapeId | Information | A shape_id defined in shapes.txt is not used elsewhere in the GTFS |
| UnusableTrip | Error | A trip must visit more than one stop in stop_times.txt to be usable by passengers for boarding and alighting. |
| UnusableTrip | Warning | A trip must visit more than one stop in stop_times.txt to be usable by passengers for boarding and alighting. |
| | | |
| NegativeTravelTime | Warning | The travel duration between two stops is negative. |
| NegativeStopDuration | Warning | The `departure_time` at a stop is earlier than its `arrival_time`. |
Expand Down
2 changes: 1 addition & 1 deletion src/validators/unusable_trip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn validate(gtfs: &gtfs_structures::Gtfs) -> Vec<Issue> {
}

fn mk_issue(trip: &Trip) -> Issue {
Issue::new_with_obj(Severity::Error, IssueType::UnusableTrip, trip)
Issue::new_with_obj(Severity::Warning, IssueType::UnusableTrip, trip)
}

#[test]
Expand Down