diff -r 10ce28475e9c -r ac067a42b00f itienary_processing.py --- a/itienary_processing.py Thu Nov 05 14:52:50 2020 +0200 +++ b/itienary_processing.py Fri Feb 05 12:16:29 2021 +0200 @@ -39,6 +39,7 @@ for entry in session.query(GtfsStopTime) .filter(GtfsStopTime.trip_id == stoptime.trip_id) .filter(GtfsStopTime.stop_sequence > stoptime.stop_sequence) + if entry.stop.stop_region_major == 1 )) def get_destination(stoptime, itinerary): @@ -48,7 +49,7 @@ trip_length = float(length_left(stoptime)), regions = regions, ) - return '-'.join(dests) + return ';'.join(dests) while got_stoptimes: if k > 0: