def generate_bounding_box(bottom_left, top_right):
 (west, lat_1) = bottom_left.get_coords()
 (east, lat_2) = top_right.get_coords()
 (min_lat, max_lat) = (min(lat_1, lat_2), max(lat_1, lat_2))
 return ((min_lat, west), (max_lat, east))

def generate_bounding_box ( bottom_left , top_right ) : ( west , lat_1 ) = bottom_left . get_coords ( ) ( east , lat_2 ) = top_right . get_coords ( ) ( min_lat , max_lat ) = ( min ( lat_1 , lat_2 ) , max ( lat_1 , lat_2 ) ) return ( ( min_lat , west ) , ( max_lat , east ) )
takes two opposite corners of a bounding box & generates a two-tuple of the correct coordinates for the bounding box .