lastKnownLocation

open suspend override fun lastKnownLocation(validate: Boolean): Completion<Location?>

Returns the last location from Fused Location Provider API or the last known location from LocationManager as fallback. If validate is set to true, it will only return the location if it is valid and null otherwise. In case of error it returns a Throwable.

Return

The Location or null depending on the validity or a Throwable in case of error.

See also

cloud.pace.sdk.utils.LocationProviderImpl