def handle_route_runs(route_id): bart_route = bart.get_route_info(route_id) runs = [ model.Run.from_bart(bart_route) ] return model.List(ObjectField(model.Run))(runs)
def handle_route(route_id): bart_route = bart.get_route_info(route_id) return model.Route.from_bart(bart_route)