Skip to content

Commit

Permalink
UnusableTrip as warning (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitfred authored Feb 3, 2025
1 parent 6dfc3e3 commit 0d83f79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 0d83f79

Please sign in to comment.