def haversine(origin, destination):
    
    lon1, lat1 = map(math.radians, origin)
    lon2, lat2 = map(math.radians, destination)
    radius = 6371000 # Earth's radius in metres
    
    dlat = lat2-lat1
    dlon = lon2-lon1
    a = math.sin(dlat/2)**2 + math.cos(lat1) * math.cos(lat2) * math.sin(dlon/2)**2
    c = 2 * math.atan2(math.sqrt(a), math.sqrt(1-a))
    d = radius * c
    
    return d
Register that the resource identified by *resource_path* is provided by *provider*.
dataset/ETHPy150Open mollyproject/mollyproject/molly/utils/__init__.py/haversine--crossover with--dataset/ETHPy150Open foundit/Piped/piped/resource.py/ResourceManager.register