540 'stop_id': schedule_entry['stop'].stop.reference, |
540 'stop_id': schedule_entry['stop'].stop.reference, |
541 'stop_code': schedule_entry['stop'].stop.code, |
541 'stop_code': schedule_entry['stop'].stop.code, |
542 'stop_name': tr(schedule_entry['stop'].stop.name, 'bus-stops', 'places'), |
542 'stop_name': tr(schedule_entry['stop'].stop.name, 'bus-stops', 'places'), |
543 'imminent': imminent(schedule_entry), |
543 'imminent': imminent(schedule_entry), |
544 'typename': schedule_entry['stop'].stop.typename, |
544 'typename': schedule_entry['stop'].stop.typename, |
545 } for schedule_entry in cluster.schedule(max_amount = 100)) |
545 } for schedule_entry in cluster.schedule(max_amount = 100, max_past = 4, arrivals = True)) |
546 stops_in_cluster = sorted( |
546 stops_in_cluster = sorted( |
547 ({ |
547 ({ |
548 'id': stop.reference, |
548 'id': stop.reference, |
549 'code': stop.code, |
549 'code': stop.code, |
550 'name': tr(stop.name, 'bus-stops'), |
550 'name': tr(stop.name, 'bus-stops'), |