Closed barbeau closed 7 years ago
I'm working on this via https://github.com/OneBusAway/onebusaway-client-library/issues/12.
Alright, this is finally implemented in the onebusaway-client-library
as a utility method that returns the summary as a string, with an optional separator (e.g., speech pause) between each group - UIUtils.getArrivalInfoSummary(List<ArrivalInfo> arrivalInfo, String separator)
See https://github.com/OneBusAway/onebusaway-client-library/pull/17 for details.
I'll work on integrating into OBA Alexa now.
Summary:
From user beta testing (https://github.com/OneBusAway/onebusaway-alexa/issues/65):
We'll need to be careful that we can still distinguish between real-time and scheduled arrivals for the same route/headsign, and between arrival and departure information for the same route/headsign (see https://github.com/OneBusAway/onebusaway-client-library/issues/11 in library).
I've ticketed this issue in the library in https://github.com/OneBusAway/onebusaway-client-library/issues/12, as it would be best to provide the utility to do this in the library. We can close this issue after the functionality has been implemented in the library and integrated here.
Steps to reproduce:
Get arrival info for any stop.
Expected behavior:
All arrivals for the same route/headsign would be announced in a group:
Observed behavior:
Route/headsign are repeated for every arrival:
Device:
Amazon Echo