title: Getting latitude and longitude updates based off of change in distance for Android
body: <p>I know with the Android and the Location API's it's possible to receive periodic updates of latitude and longitude through an interval of time using the "setInterval" method and other methods on the "LocationRequest" class, but what I'm wondering is, what would be a good way to get latitude and longitude updates via GPS based off of a change in distance compared to the previous location without having it on all the time and not wasting battery (preferably a solution that is energy efficient).</p>
  
  <p>For example, say I start at one place and then 2 minutes later I'm 5km from the distance that I originally started at. At this point the GPS would detect the change in location and update the latitude and longitude on the device.</p>
  
  <p>If anyone could provide some insight or code samples on how to do this, that'd be great!</p>
  
  <p>Thanks</p>