Complete function to get individuals' coordinates