The average distance property for subsets of euclidean space