The wireless sensor network node positioning is critical and has a broad prospect in military and civilian fields. The current localization algorithm is mainly divided into two types, namely localization algorithm based on distance and distance irrelevant localization algorithm.The two types of algorithms have their own advantages and disadvantages. Consider the advantages and disadvantages of the two algorithms, this paper proposes a higher positioning accuracy, error smaller localization algorithm, this method first takes the maximum likelihood estimation method to locate the node for a rough estimation, then uses the improved centroid algorithm to locate the node coordinates to estimate refinement, further improves the positioning accuracy. Simulation results show that the proposed algorithm improves the positioning accuracy.