Skip to content

Commit cb11d4f

Browse files
committed
Revert "Temporarily revert map layer update"
This reverts commit 251f475.
1 parent 251f475 commit cb11d4f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

application/src/ext/java/org/opentripplanner/ext/vectortiles/layers/stops/DigitransitRealtimeStopPropertyMapper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ protected Collection<KeyValue> map(RegularStop stop) {
3939
.findStopTimesInPattern(stop, serviceDate, ArrivalDeparture.BOTH, true)
4040
.stream()
4141
.anyMatch(stopTime -> stopTime.times.size() > 0);
42+
var inService = transitService.hasScheduledServicesAfter(LocalDate.now(), stop);
4243

4344
Collection<KeyValue> sharedKeyValues = getBaseKeyValues(stop, i18NStringMapper, transitService);
4445
return ListUtils.combine(
4546
sharedKeyValues,
4647
List.of(
4748
new KeyValue("closedByServiceAlert", noServiceAlert),
48-
new KeyValue("servicesRunningOnServiceDate", stopTimesExist)
49+
new KeyValue("servicesRunningOnServiceDate", stopTimesExist),
50+
new KeyValue("servicesRunningInFuture", inService)
4951
)
5052
);
5153
}

0 commit comments

Comments
 (0)