If you use something like Ekahau Survey or a similar tool, it's not that hard.
If you want to program something yourself, go for it. You need a client to walk around and measure the beacons from all APs at every given location and enter that into the software.