jamespfennell / transiter

Web service for transit data
https://demo.transiter.dev
MIT License
55 stars 6 forks source link

Terminating/southbound 6 trains appear in the wrong order the Brooklyn Bridge/City Hall stop #132

Closed jamespfennell closed 2 months ago

jamespfennell commented 7 months ago

~6 trains that terminate at Brooklyn Bridge/City Hall do not appear in the data for that stop. By comparison, 7 trains terminating at Flushing do appear in the Flushing stop data. The 7 train behavior is the correct one. I did an initial look over the code and have no idea why this is happening.~

jamespfennell commented 7 months ago

The bug is a little different. These trips do appear in the endpoint. It's just they're not in the correct sort order. All of the southbound 6 trips come at the end of the list of stop times, irrespective of the arrival time, whereas the stop times are supposed to be ordered by time. These trips have a null departure time, and I presume the sort ordering isn't handling this quite right.

It's still unclear to me why this is only seen for the 6 and not also the C@Euclid and G@Church Av.