import math


def distance(cluster1, cluster2):
    """ Function to find the distance

        Args:
            cluster1 (tuple): Geo coordinate
            cluster2 (tuple) Geo Coordinate
        Returns:
            A float, the distance in meters.
    """
    R = 6378.137
    d_lat = cluster2[0] * math.pi / 180 - cluster1[0] * math.pi / 180
    d_lon = cluster2[1] * math.pi / 180 - cluster1[1] * math.pi / 180
    val1 = math.sin(d_lat / 2) * math.sin(d_lat / 2)
    val2 = math.cos(cluster1[0] * math.pi / 180) * math.cos(cluster2[0] * math.pi / 180)
    val3 = math.sin(d_lon / 2) * math.sin(d_lon / 2)
    val4 = val1 + (val2 * val3)
    dist = 2 * math.atan2(math.sqrt(val4), math.sqrt(1 - val4))
    dist_m = R * dist
    return dist_m * 1000