@@ -25,6 +25,7 @@ public PickupBookingRuleIdValidator(
2525 public void validate (GtfsStopTime entity , NoticeContainer noticeContainer ) {
2626 if (entity .hasPickupType ()
2727 && entity .pickupType () == GtfsPickupDropOff .MUST_PHONE
28+ && entity .hasStartPickupDropOffWindow ()
2829 && !entity .hasPickupBookingRuleId ()) {
2930 noticeContainer .addValidationNotice (
3031 new MissingPickupDropOffBookingRuleIdNotice (
@@ -34,6 +35,7 @@ public void validate(GtfsStopTime entity, NoticeContainer noticeContainer) {
3435 }
3536 if (entity .hasDropOffType ()
3637 && entity .dropOffType () == GtfsPickupDropOff .MUST_PHONE
38+ && entity .hasEndPickupDropOffWindow ()
3739 && !entity .hasDropOffBookingRuleId ()) {
3840 noticeContainer .addValidationNotice (
3941 new MissingPickupDropOffBookingRuleIdNotice (
@@ -61,8 +63,12 @@ public boolean shouldCallValidate() {
6163 }
6264
6365 /**
64- * `pickup_booking_rule_id` is recommended when `pickup_type=2` and `drop_off_booking_rule_id` is
65- * recommended when `drop_off_type=2`
66+ * pickup_booking_rule_id is recommended when pickup_type=2 and drop_off_booking_rule_id is
67+ * recommended when drop_off_type=2.
68+ *
69+ * <p>Currently, this notice is only triggered on feeds when either start_pickup_drop_off_window
70+ * or end_pickup_drop_off_window is defined, since this recommendation was added to the
71+ * specification for feeds with GTFS-Flex.
6672 */
6773 @ GtfsValidationNotice (
6874 severity = SeverityLevel .WARNING ,
0 commit comments