The virtual coordinate-based geometric routing protocol is widely used in wireless sensor networks. In this paper Schnyder geometric routing algorithm based on coordinate-based geometric is researched and implemented. A novel algorithm called Greedy-Compass Double Model Routing Algorithm is proposed in order to solve the problem of node failure. Finally, an experiment is demonstrated to show that the achievable rate of the improved algorithm is much higher than that of Schnyder algorithm under the same condition.