umts / bojangles

Ruby script for monitoring the PVTA realtime bus departures feed
MIT License
0 stars 0 forks source link

Don't report last stops in trip #13

Closed dfaulken closed 8 years ago

dfaulken commented 8 years ago

As an example, let's say we're monitoring Studio Arts Building.

The 45 has a trip inbound from Belchertown Center with headsign UMass, ending at Studio Arts Building; and a trip with headsign Bus Garage via Compsci, starting at Studio Arts Building.

The current logic will expect to see both departures at the same time, which is incorrect. However because our times are stored in a CSV and not in a relational database, it seems like it would be difficult to not cache departures which are the last stop in a particular trip.

sherson commented 8 years ago

Cool