def polygon_to_bbox(p):
    """
    Returns the x0,y0,x1,y1 coordinates of the bounding box surrounding the polygon.

    :param p: the polygon to get the bbox for
    :type p: Polygon
    :return: the bounding box coordinates (x0,y0,x1,y1)
    :rtype: tuple
    """

    bbox = p.bounding_box
    x0 = bbox.min_point.x
    y0 = bbox.min_point.y
    x1 = bbox.max_point.x
    y1 = bbox.max_point.y

    return x0,y0,x1,y1