The recent preprint [Determining Generic Point Configurations From Unlabeled Path or Loop Lengths](https://arxiv.org/abs/1709.03936) by Gkioulekas, Gortler, Theran, and Zickler, treats a generalization of this question to higher dimensions.