Have tried google it but not sure what search terms to use.
I need some help figuring out how to get a main Xbee talking to the Xbee node thats closest.
Made some overview images, hope this explains it good enough.
The different Xbee nodes are sending sensor values, so the main Xbee needs to receive the values thats most relevant to its position.
There is an assumption in your question that will be very difficult to deal with. That is, the "main XBee" has ti know which other XBee is closest. How do you propose to know that?
Once you do, talking to that specific XBee should be trivial.