RSSI is only very aproximately a measure of distance. Variations in tx power and rx sensitivity and antenna directivity matter enormously here. But the elephants in the room are obstructions and reflections. Unless you're in unobstructed clear space you'll get variations of >>20dB which ruins all the sums.
Find another way.
Allan