I\'m hoping to calculate the distance to the nearest point grouped by specific items. Specifically, using below, calculate_distances measures the distances betw
calculate_distances