Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Latest commit

 

History

History
12 lines (9 loc) · 440 Bytes

last-known-location.md

File metadata and controls

12 lines (9 loc) · 440 Bytes

Getting the Last Known Location

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
}