def computeBboxOfMultiple(bboxes):
    """
    Function purpose:  
        compute an overall bbox from an array of bounding boxes
        required format of parameter 'bboxes': [ bbox1, bbox2, ..., bboxn ]
        while each bbox has the format: [ min(longs), min(lats), max(longs), max(lats) ]
    Input: bboxes

    Output: array of coordinates
    """
    coordinate0 = 200
    coordinate1 = 200
    coordinate2 = -200
    coordinate3 = -200
    for x in bboxes:
        if x[0] < coordinate0:
            coordinate0 = x[0]
        if x[1] < coordinate1:
            coordinate1 = x[1]
        if x[2] > coordinate2:
            coordinate2 = x[2]
        if x[3] > coordinate3:
            coordinate3 = x[3]
    return [coordinate0, coordinate1, coordinate2, coordinate3]
