This triangulation process is not feasible in a tree-like network, since only path lengths between any node and a hub can be measured. This then limits localization capability of a tree network. To preserve the energy benefits of a tree network while allowing localization, in one embodiment of this invention, a tree network for communication is combined with mesh-like network functionality for localization. Once localization is complete with mesh-like network functionality, the network switches back to tree-like communication and only time of flights between the nodes and the hub are measured periodically. Provided these time of flights are held relatively constant, the network then assumes nodes have not moved and does not waste energy is attempting to re-run mesh-based localization. On the other hand, when a change in path length in the tree network is detected, the network switches to a mesh-based system and re-triangulates to determine location of each node in the network.