await Find Current Place
@ExperimentalCoroutinesApi
@RequiresPermission(anyOf = ["android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION" ] )
Deprecated
Use awaitSearchNearbyPlace(locationRestriction, placeFields) instead. This function uses the deprecated FindCurrentPlaceRequest.
Replace with
this.awaitSearchNearbyPlace(LocationRestriction(), placeFields)Content copied to clipboard
Wraps PlacesClient.findCurrentPlace in a suspending function.
Fetches the approximate current place of the user's device. Calling this method without granting the appropriate permissions will result in a SecurityException being thrown. In addition, if an error occurred while fetching the current place, an ApiException will be thrown.