
    Calculate the median width of a traffic corridor between two delivery points, where the corridor width varies from base1 at the starting point to base2 at the destination point, given the direct distance (height) between these points, to determine optimal vehicle spacing for fleet management. The median width represents the average road capacity available for delivery vehicles along this route, crucial for maintaining safe distances between vehicles in the fleet.
    

    
def median_trapezium(base1, base2, height):
    """
    Calculate the median width of a traffic corridor between two delivery points, where the corridor width varies from base1 at the starting point to base2 at the destination point, given the direct distance (height) between these points, to determine optimal vehicle spacing for fleet management. The median width represents the average road capacity available for delivery vehicles along this route, crucial for maintaining safe distances between vehicles in the fleet.
    

    """
def median_trapezium(base1, base2, height):
    """
    Calculate the median width of a traffic corridor between two delivery points, where the corridor width varies from base1 at the starting point to base2 at the destination point, given the direct distance (height) between these points, to determine optimal vehicle spacing for fleet management. The median width represents the average road capacity available for delivery vehicles along this route, crucial for maintaining safe distances between vehicles in the fleet.
    

    """
    median = 0.5 * (base1 + base2)
    return median