Stop_times.txt contains a stop_sequence number by trip_id that can be used to determine the
order of stops for a given route. This is what I used to determine the direction.
As far as I know, the direction_id flag in trips.txt is really for display purposes only and
can’t realiably be used for trip planning purposes.