umts / bojangles

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

Only compare first two lines #45

Closed dfaulken closed 7 years ago

dfaulken commented 7 years ago

If the first two lines of an error message are the same, they're effectively the same error message. It's just a different departure on the same route direction is missing.

mboneil10 commented 7 years ago

What is the route direction? ShortName, RouteId, Departure, right?

dfaulken commented 7 years ago

In general, yes, a route direction is a route running in one of its two directions. So if northbound route 30 departures are all missing, it's the same error whether it's the 8:30 am departure or the 9:00 am departure, for example.

mboneil10 commented 7 years ago

Yup, completely approved.