From Professional Android Sensor Programming . Greg Milette, Adam Stroud: 
I, this time, will go with the implementation of the above model: check the current location, sleep according to the distance from the destination, until the current location is close enough.
Mugen source share