def trips_to_response(location, trips):
    """
    Formulates a response to be read by Google Assistant

    location    The location where the trips depart from
    trips       The trips departing from the location of interest
    """
    # Sort the trip on departure order, first ones to leave first
    trips = sorted(trips, key=lambda trip: int(trip.minutes_left))
    response = "Departures from " + location + ":\n"
    for trip in trips:
        response += str(trip) + "\n"

    return response