getLastKnownLocation

fun getLastKnownLocation(completionCallback: CompletionCallback<Coordinates>)

Retrieves the last known location asynchronously and provides a completion callback.

Parameters

completionCallback

The completion callback to handle the result or error.


suspend fun getLastKnownLocation(): Coordinates?

Retrieves the last known location synchronously.

Return

The last known location.