I match ScheduleStopPairs against Routes instead of RouteStopPatterns because while manually looking through a few of them, the RouteStopPattern on the SSP was null. However it would be better if you first tried matching against the RouteStopPattern and only matched against the Route as a fallback.
When matching to Routes, sometimes the SSP is matched to the wrong direction of the Route. Usually that doesn't matter but with highways or any place where the route is different in each direction, it can look like the bus is driving on the wrong side of the road.
For example:
https://all-transit.com/#13.53/47.53084/-122.29016
I match ScheduleStopPairs against Routes instead of RouteStopPatterns because while manually looking through a few of them, the
RouteStopPattern
on the SSP was null. However it would be better if you first tried matching against theRouteStopPattern
and only matched against the Route as a fallback.When matching to Routes, sometimes the SSP is matched to the wrong direction of the Route. Usually that doesn't matter but with highways or any place where the route is different in each direction, it can look like the bus is driving on the wrong side of the road. For example: https://all-transit.com/#13.53/47.53084/-122.29016