Getting the Last Known Location

March 29, 2017 ยท View on GitHub

Once the LostApiClient is connected you can request the last known location.

The actual logic to determine the best most recent location is based this classic blog post by Reto Meier.

Location location = LocationServices.FusedLocationApi.getLastLocation(lostApiClient);
if (location != null) {
  // Do stuff
}