From c5711273b33f5268617e8aa809fda4baeaf5f129 Mon Sep 17 00:00:00 2001 From: jpizzurro Date: Fri, 19 May 2023 11:52:31 -0400 Subject: [PATCH] Issue #341: When possible, include stop sequence in stop time updates returned by trip-updates-for-agency API endpoint of onebusaway-api-webapp --- .../actions/api/gtfs_realtime/TripUpdatesForAgencyAction.java | 1 + 1 file changed, 1 insertion(+) diff --git a/onebusaway-api-webapp/src/main/java/org/onebusaway/api/actions/api/gtfs_realtime/TripUpdatesForAgencyAction.java b/onebusaway-api-webapp/src/main/java/org/onebusaway/api/actions/api/gtfs_realtime/TripUpdatesForAgencyAction.java index 9c30cbae2f..bb86c14fe5 100644 --- a/onebusaway-api-webapp/src/main/java/org/onebusaway/api/actions/api/gtfs_realtime/TripUpdatesForAgencyAction.java +++ b/onebusaway-api-webapp/src/main/java/org/onebusaway/api/actions/api/gtfs_realtime/TripUpdatesForAgencyAction.java @@ -76,6 +76,7 @@ protected void fillFeedMessage(FeedMessage.Builder feed, String agencyId, * to indicate that */ stopTimeUpdate.setStopId(normalizeId(stopId.toString())); + stopTimeUpdate.setStopSequence(timepointPrediction.getStopSequence()); TripUpdate.StopTimeEvent.Builder arrival = stopTimeUpdate.getArrivalBuilder(); if (timepointPrediction.getTimepointPredictedArrivalTime() != -1) { arrival.setTime(timepointPrediction.getTimepointPredictedArrivalTime()/1000L);