get_closest_points now can filter returning points by max_distance.