Skip to content

Commit 0d83f79

Browse files
authored
UnusableTrip as warning (#213)
1 parent 6dfc3e3 commit 0d83f79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Here is a human friendly list of them :
150150
| DuplicateStopSequence | Error | Several stop times in a trip have the same `stop_sequence` value. The stop_sequence values within a trip must be unique. |
151151
| ExtraFile | Information | The file does not belong to a GTFS archive |
152152
| UnusedShapeId | Information | A shape_id defined in shapes.txt is not used elsewhere in the GTFS |
153-
| UnusableTrip | Error | A trip must visit more than one stop in stop_times.txt to be usable by passengers for boarding and alighting. |
153+
| UnusableTrip | Warning | A trip must visit more than one stop in stop_times.txt to be usable by passengers for boarding and alighting. |
154154
| | | |
155155
| NegativeTravelTime | Warning | The travel duration between two stops is negative. |
156156
| NegativeStopDuration | Warning | The `departure_time` at a stop is earlier than its `arrival_time`. |

src/validators/unusable_trip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn validate(gtfs: &gtfs_structures::Gtfs) -> Vec<Issue> {
2626
}
2727

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

3232
#[test]

0 commit comments

Comments
 (0)