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 location result or error.


suspend fun getLastKnownLocation(): Coordinates?

Retrieves the last known location asynchronously.

Return

The last known location or null if not available.