Physical distance between 2 devices (in m)

Is it possible to find out the physical distance between 2 devices? Map location will not work because I want to find devices within the allowable social distance (6ft or ~2m). Explored Multipeer but it does not have physical distance information. Any other pointers? Thanks!