File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,9 @@ def output(data):
154154 try :
155155 print ("========" )# Von {} nach {}".format(elem['startLocation']['stopPointName'], elem['endLocation']['stopPointName']))
156156 for connection in elem ['elementList' ]:
157- if connection ['modalType' ] == "bus" :
157+ if connection ["type" ] == "LineChange" :
158+ print ("Bus wechselt Linie" )
159+ elif connection ['modalType' ] == "bus" :
158160 print ("{} ab {:<30}{:>3} {}" .format (
159161 unix_epoch_to_time (
160162 connection ['start' ]['aimedArrivalInUnixEpochMillis' ] or
@@ -192,6 +194,7 @@ def output(data):
192194 print ()
193195 except KeyError as e :
194196 print (e )
197+ print (connection )
195198 else :
196199 print ("Fehler: Weniger als 1 oder mehr als 2 HaltestellenIDs" )
197200 exit (1 )
You can’t perform that action at this time.
0 commit comments