# PlacesClient


```
public interface PlacesClient
```

<br />

*** ** * ** ***

Client that exposes the Places API methods. To get a `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient`, use `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/Places#createClient(android.content.Context)`.

## Summary

| ### Public methods |
|---|---|
| `abstract https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FetchPlaceResponse>` | `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#fetchPlace(com.google.android.libraries.places.api.net.FetchPlaceRequest)(https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FetchPlaceRequest request)` Fetches the details of a place. |
| `abstract https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FetchResolvedPhotoUriResponse>` | `[fetchResolvedPhotoUri](https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#fetchResolvedPhotoUri(com.google.android.libraries.places.api.net.FetchResolvedPhotoUriRequest))(https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FetchResolvedPhotoUriRequest request)` **This method is deprecated.** Update your code to use the Place Details component in Places UI Kit, which provides a pre-built UI to display place details including photos and reviews that automatically handles required attributions. <br /> |
| `abstract https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FindAutocompletePredictionsResponse>` | `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#findAutocompletePredictions(com.google.android.libraries.places.api.net.FindAutocompletePredictionsRequest)( https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FindAutocompletePredictionsRequest request )` Fetches autocomplete predictions. |
| `abstract https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/IsOpenResponse>` | `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#isOpen(com.google.android.libraries.places.api.net.IsOpenRequest)(https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/IsOpenRequest request)` Returns whether or not a place is open. |
| `abstract https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/SearchByTextResponse>` | `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#searchByText(com.google.android.libraries.places.api.net.SearchByTextRequest)(https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/SearchByTextRequest request)` Search for place(s) of interest using a text query. |
| `abstract https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/SearchNearbyResponse>` | `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#searchNearby(com.google.android.libraries.places.api.net.SearchNearbyRequest)(https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/SearchNearbyRequest request)` Search for place(s) of interest using a location. |

| ### Extension functions |
|---|---|
| `default final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FetchPlaceResponse` | `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClientKt.https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#(com.google.android.libraries.places.api.net.PlacesClient).awaitFetchPlace(kotlin.String,kotlin.collections.List,kotlin.Function1)( @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient receiver, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html placeId, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place.Field> placeFields, @https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-extension-function-type/index.html @https://developer.android.com/reference/androidx/annotation/NonNull.html Function1<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FetchPlaceRequest.Builder, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html> actions )` Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#fetchPlace(com.google.android.libraries.places.api.net.FetchPlaceRequest)` in a suspending function. |
| `default final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FetchResolvedPhotoUriResponse` | `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClientKt.[awaitFetchResolvedPhotoUri](https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#(com.google.android.libraries.places.api.net.PlacesClient).awaitFetchResolvedPhotoUri(com.google.android.libraries.places.api.model.PhotoMetadata,kotlin.Function1))( @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient receiver, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/PhotoMetadata photoMetadata, @https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-extension-function-type/index.html @https://developer.android.com/reference/androidx/annotation/NonNull.html Function1<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FetchResolvedPhotoUriRequest.Builder, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html> actions )` **This method is deprecated.** Update your code to use the Place Details component in Places UI Kit, which provides a prebuilt UI to display place details including photos and reviews that automatically handles required attributions. |
| `default final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FindAutocompletePredictionsResponse` | `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClientKt.https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#(com.google.android.libraries.places.api.net.PlacesClient).awaitFindAutocompletePredictions(kotlin.Function1)( @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient receiver, @https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-extension-function-type/index.html @https://developer.android.com/reference/androidx/annotation/NonNull.html Function1<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FindAutocompletePredictionsRequest.Builder, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html> actions )` Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#findAutocompletePredictions(com.google.android.libraries.places.api.net.FindAutocompletePredictionsRequest)` in a suspending function. |
| `default final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/IsOpenResponse` | `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClientKt.https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#(com.google.android.libraries.places.api.net.PlacesClient).awaitIsOpen(kotlin.String,kotlin.Long)( @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient receiver, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html placeId, https://developer.android.com/reference/java/lang/Long.html utcTimeMillis )` Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#isOpen(com.google.android.libraries.places.api.net.IsOpenRequest)` in a suspending function with the given placeId. |
| `default final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/IsOpenResponse` | `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClientKt.https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#(com.google.android.libraries.places.api.net.PlacesClient).awaitIsOpen(com.google.android.libraries.places.api.model.Place,kotlin.Long)( @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient receiver, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place place, https://developer.android.com/reference/java/lang/Long.html utcTimeMillis )` Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#isOpen(com.google.android.libraries.places.api.net.IsOpenRequest)` in a suspending function with the given `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place` object. |
| `default final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/SearchByTextResponse` | `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClientKt.https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#(com.google.android.libraries.places.api.net.PlacesClient).awaitSearchByText(kotlin.String,kotlin.collections.List,kotlin.Function1)( @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient receiver, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html textQuery, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place.Field> placeFields, @https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-extension-function-type/index.html @https://developer.android.com/reference/androidx/annotation/NonNull.html Function1<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/SearchByTextRequest.Builder, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html> actions )` Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#searchByText(com.google.android.libraries.places.api.net.SearchByTextRequest)` in a suspending function. |
| `default final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/SearchNearbyResponse` | `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClientKt.https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#(com.google.android.libraries.places.api.net.PlacesClient).awaitSearchNearby(com.google.android.libraries.places.api.model.LocationRestriction,kotlin.collections.List,kotlin.Function1)( @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient receiver, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/LocationRestriction locationRestriction, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place.Field> placeFields, @https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-extension-function-type/index.html @https://developer.android.com/reference/androidx/annotation/NonNull.html Function1<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/SearchNearbyRequest.Builder, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html> actions )` Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#searchNearby(com.google.android.libraries.places.api.net.SearchNearbyRequest)` in a suspending function. |

## Public methods

### fetchPlace

```
abstract Task<FetchPlaceResponse> fetchPlace(FetchPlaceRequest request)
```

Fetches the details of a place.

| Parameters |
|---|---|
| `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FetchPlaceRequest request` | The request specifying the place of interest. |

| Returns |
|---|---|
| `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FetchPlaceResponse>` | a response containing the place of interest, as a Place object. However, if an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be returned instead. |

### fetchResolvedPhotoUri

```
abstract Task<FetchResolvedPhotoUriResponse> [fetchResolvedPhotoUri](https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#fetchResolvedPhotoUri(com.google.android.libraries.places.api.net.FetchResolvedPhotoUriRequest))(FetchResolvedPhotoUriRequest request)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Update your code to use the Place Details component in Places UI Kit, which provides a pre-built UI to display place details including photos and reviews that automatically handles required attributions.

Fetches a resolved uri for the photo. Resolving the URI (that is, calling this method) causes the Place Photo SKU to be charged, so it is generally recommended to avoid calling this function for photos that will not be displayed.

FetchResolvedPhotoUri is only supported by Places API (New). Please enable your API key for the Places API (New) in the Google Cloud Console to access this service.

| Parameters |
|---|---|
| `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FetchResolvedPhotoUriRequest request` | The request specifying the photo to request. |

| Returns |
|---|---|
| `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FetchResolvedPhotoUriResponse>` | a response that contains the photo uri requested. However, if an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be returned instead. |

### findAutocompletePredictions

```
abstract Task<FindAutocompletePredictionsResponse> findAutocompletePredictions(
    FindAutocompletePredictionsRequest request
)
```

Fetches autocomplete predictions.

| Parameters |
|---|---|
| `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FindAutocompletePredictionsRequest request` | The request specifying details of the autocomplete query. |

| Returns |
|---|---|
| `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/FindAutocompletePredictionsResponse>` | a response containing the list of prediction objects. However, if an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be returned instead. |

### isOpen

```
abstract Task<IsOpenResponse> isOpen(IsOpenRequest request)
```

Returns whether or not a place is open.

If necessary, a `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#fetchPlace(com.google.android.libraries.places.api.net.FetchPlaceRequest)` request will be performed in order to gather the required info to make a determination.

Please note that for future dates and time, the open/closed status might not be accurate due to potential time zone adjustments (for example, daylight saving time changes) or business status changes.

If providing a `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place` object, `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place.Field#ID` is required, else an `
IllegalArgumentException` will be thrown. If the following fields are not provided, a request will be made to fetch the info:

- `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place.Field#BUSINESS_STATUS`
- `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place.Field#CURRENT_OPENING_HOURS`
- `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place.Field#UTC_OFFSET`
- `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place.Field#OPENING_HOURS`

\*\*NOTE:\*\* It is best practice to check that opening hours are not null before passing in a `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place` (with opening hours already requested) to `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/IsOpenRequest`. In some cases, a place may not have any opening hours data available. If a place request with the opening hours field has already been made, and opening hours are null, calling this method using the place response object will result in another billable event.

| Parameters |
|---|---|
| `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/IsOpenRequest request` | The request specifying the place information and time for if a place is open. |

| Returns |
|---|---|
| `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/IsOpenResponse>` | a response on whether the place of interest is open. However, if an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be returned instead. |

### searchByText

```
abstract Task<SearchByTextResponse> searchByText(SearchByTextRequest request)
```

Search for place(s) of interest using a text query.

SearchByText is only supported by Places API (New). Please enable your API key for the Places API (New) in the Google Cloud Console to access this service.

| Parameters |
|---|---|
| `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/SearchByTextRequest request` | The request specifying the parameters for the search. |

| Returns |
|---|---|
| `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/SearchByTextResponse>` | a response containing the place(s) of interest. However, if an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be returned instead. |

### searchNearby

```
abstract Task<SearchNearbyResponse> searchNearby(SearchNearbyRequest request)
```

Search for place(s) of interest using a location.

SearchNearby is only supported by Places API (New). Please enable your API key for the Places API (New) in the Google Cloud Console to access this service.

| Parameters |
|---|---|
| `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/SearchNearbyRequest request` | The request specifying the parameters for the search. |

| Returns |
|---|---|
| `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/SearchNearbyResponse>` | a response containing the place(s) of interest. However, if an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be returned instead. |

## Extension functions

### PlacesClientKt.awaitFetchPlace

```
default final @NonNull FetchPlaceResponse PlacesClientKt.awaitFetchPlace(
    @NonNull PlacesClient receiver,
    @NonNull String placeId,
    @NonNull List<@NonNull Place.Field> placeFields,
    @ExtensionFunctionType @NonNull Function1<@NonNull FetchPlaceRequest.Builder, Unit> actions
)
```

Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#fetchPlace(com.google.android.libraries.places.api.net.FetchPlaceRequest)` in a suspending function.

Fetches the details of a place. If an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be thrown.

### PlacesClientKt.awaitFetchResolvedPhotoUri

```
default final @NonNull FetchResolvedPhotoUriResponse PlacesClientKt.[awaitFetchResolvedPhotoUri](https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#(com.google.android.libraries.places.api.net.PlacesClient).awaitFetchResolvedPhotoUri(com.google.android.libraries.places.api.model.PhotoMetadata,kotlin.Function1))(
    @NonNull PlacesClient receiver,
    @NonNull PhotoMetadata photoMetadata,
    @ExtensionFunctionType @NonNull Function1<@NonNull FetchResolvedPhotoUriRequest.Builder, Unit> actions
)
```

> [!CAUTION]
> **This method is deprecated.**   
> Update your code to use the Place Details component in Places UI Kit, which provides a prebuilt UI to display place details including photos and reviews that automatically handles required attributions.

Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#fetchResolvedPhotoUri(com.google.android.libraries.places.api.net.FetchResolvedPhotoUriRequest)` in a suspending function.

Fetches a resolved uri for the photo of a place. If an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be thrown.

### PlacesClientKt.awaitFindAutocompletePredictions

```
default final @NonNull FindAutocompletePredictionsResponse PlacesClientKt.awaitFindAutocompletePredictions(
    @NonNull PlacesClient receiver,
    @ExtensionFunctionType @NonNull Function1<@NonNull FindAutocompletePredictionsRequest.Builder, Unit> actions
)
```

Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#findAutocompletePredictions(com.google.android.libraries.places.api.net.FindAutocompletePredictionsRequest)` in a suspending function.

Fetches autocomplete predictions. If an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be thrown.

### PlacesClientKt.awaitIsOpen

```
default final @NonNull IsOpenResponse PlacesClientKt.awaitIsOpen(
    @NonNull PlacesClient receiver,
    @NonNull String placeId,
    Long utcTimeMillis
)
```

Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#isOpen(com.google.android.libraries.places.api.net.IsOpenRequest)` in a suspending function with the given placeId.

Returns whether or not a place is open. If an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be thrown.

### PlacesClientKt.awaitIsOpen

```
default final @NonNull IsOpenResponse PlacesClientKt.awaitIsOpen(
    @NonNull PlacesClient receiver,
    @NonNull Place place,
    Long utcTimeMillis
)
```

Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#isOpen(com.google.android.libraries.places.api.net.IsOpenRequest)` in a suspending function with the given `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place` object.

Returns whether or not a place is open. If an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be thrown.

### PlacesClientKt.awaitSearchByText

```
default final @NonNull SearchByTextResponse PlacesClientKt.awaitSearchByText(
    @NonNull PlacesClient receiver,
    @NonNull String textQuery,
    @NonNull List<@NonNull Place.Field> placeFields,
    @ExtensionFunctionType @NonNull Function1<@NonNull SearchByTextRequest.Builder, Unit> actions
)
```

Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#searchByText(com.google.android.libraries.places.api.net.SearchByTextRequest)` in a suspending function.

Fetches the place(s) of interest using a text query. If an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be thrown.

### PlacesClientKt.awaitSearchNearby

```
default final @NonNull SearchNearbyResponse PlacesClientKt.awaitSearchNearby(
    @NonNull PlacesClient receiver,
    @NonNull LocationRestriction locationRestriction,
    @NonNull List<@NonNull Place.Field> placeFields,
    @ExtensionFunctionType @NonNull Function1<@NonNull SearchNearbyRequest.Builder, Unit> actions
)
```

Wraps `https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/net/PlacesClient#searchNearby(com.google.android.libraries.places.api.net.SearchNearbyRequest)` in a suspending function.

Fetches the place(s) of interest using a location. If an error occurred, an `https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException.html` will be thrown.