I would say it's not trivial.
Depending on you environment, all kinds of things can affect the signal strength, not just range and TX power: orientation, objects, walls, people in the room.
Probably you should start recording range and RSSI values, and if it's consistent, do some interpolation (maybe even just use excel, and pick one distance value for every 10 dBm difference)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I would say it's not trivial.
Depending on you environment, all kinds of things can affect the signal strength, not just range and TX power: orientation, objects, walls, people in the room.
Probably you should start recording range and RSSI values, and if it's consistent, do some interpolation (maybe even just use excel, and pick one distance value for every 10 dBm difference)