def _distance(line, point):
    """Returns the distance between a line and a point."""
    proj_pos = line.project(point, normalized=True)
    proj_point = line.interpolate(proj_pos, normalized=True)
    dist = proj_point.distance(point)
    return dist