umts / BusInfoBoard

A place to view bus arrival information from Avail's JSON feed
Apache License 2.0
15 stars 3 forks source link

Duplicate headsigns on different routes aren't displayed #80

Open werebus opened 2 years ago

werebus commented 2 years ago

Reported by @jmchatton with regard to the "Olver Transit Pavilion" stop in Westfield. That stop is serviced by (among others) the R10 and the WSU route. There is a WSU departure at 14:35 to "Westfield State University" and an R10 departure at 14:45 to "Westfield State University".

Because we sometimes want to show more than one departure for a particular route (e.g. 34&35), we don't only show the first departure for each route. Instead, we show only the first departure for each... I dunno... destination. We uniquify by "InternetServiceDescription", but the bug is that we don't scope that uniqueness to the route. So, the existence of a WSU bus at 14:35 going to "Westfield State University" prevents the display of an R10 bus at 14:45 going to "Westfield State University".

But, that isn't desired behavior. Just because the two routes end up at the same place doesn't mean you, as a passenger, don't want one or the other.