Learning accurately the position of the node is one of its important conditions in wireless network, therefore, the node localization technology is one of the difficult and important technologies in the research of the wireless network. In this paper, we propose that the node in wireless Ad Hoc network knows its position (threedimensional coordinates, through the node equipped with a GPS or other positioning devices), based on the OLSR routing protocol in wireless networks, we try to let the node to achieve the precise positions of its surrounding nodes or in the entire wireless network in the routing table. in addition, the OLSR routing protocol which has localization function is analyzed.