Since Wireless Sensor Networks (WSNs) and applications are closely related, with the application environment from the traditional outdoor environment gradually extended to the indoor environment, it will set a higher request to WSN and the routing algorithm. The traditional Ant Colony Algorithm (ACA) converges with a slow speed in its initial phase, so a location-aware ACA is proposed which introduces geographical information into standard ACA. The new algorithm adds direction factor into the path selection probability function which can make the ants move faster to the source by getting rid of the blindness in early path selection. Experimental results show that the location-aware ACA make great improvements in both convergence speed and running time.