Skip to content

Commit

Permalink
Issue OneBusAway#341: When possible, include stop sequence in stop ti…
Browse files Browse the repository at this point in the history
…me updates returned by trip-updates-for-agency API endpoint of onebusaway-api-webapp
  • Loading branch information
jamespizzurro committed May 19, 2023
1 parent 864000b commit c571127
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c571127

Please sign in to comment.