You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StopTime structs are not meaningful individually but only when they're grouped by trip. The stop_times.txt file is also not guaranteed to be sorted. It is very useful to have a helper that does this automatically.
I propose a struct Run and a supporting iterator whose constructor groups and sorts the stoptimes for you:
#[derive(Debug,PartialEq)]pubstructRun{pubtrip:&Trip,// or just trip_id String// StopTime is verbose, maybe create a new struct with less fields?pubsequence:Vec<StopTime>}
The text was updated successfully, but these errors were encountered:
StopTime structs are not meaningful individually but only when they're grouped by trip. The
stop_times.txt
file is also not guaranteed to be sorted. It is very useful to have a helper that does this automatically.I propose a struct Run and a supporting iterator whose constructor groups and sorts the stoptimes for you:
The text was updated successfully, but these errors were encountered: