

def distance_between(location1, location2):
    '\n    calculate distance between two points\n    '
    if hasattr(location1, 'location'):
        loc1 = location1.location
    else:
        loc1 = location1
    if hasattr(location2, 'location'):
        loc2 = location2.location
    else:
        loc2 = location2
    x_difference = (loc2[0] - loc1[0])
    y_difference = (loc2[1] - loc1[1])
    return sqrt(((x_difference ** 2) + (loc2 ** 2)))

dataset/ETHPy150Open tuturto/pyherc/src/pyherc/data/geometry.py distance_between/VarMisuse@105/152 `y_difference`->`loc2`