Class PlacesClientImpl
Places client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Maps.Places.V1
Assembly: Google.Maps.Places.V1.dll
Syntax
public sealed class PlacesClientImpl : PlacesClient
Remarks
Service definition for the Places API.
Note: every request (except for Autocomplete requests) requires a field mask
set outside of the request proto (all/*
, is not assumed). The field mask
can be set via the HTTP header X-Goog-FieldMask
. See:
https://developers.google.com/maps/documentation/places/web-service/choose-fields
Constructors
PlacesClientImpl(PlacesClient, PlacesSettings, ILogger)
Constructs a client wrapper for the Places service, with the specified gRPC client and settings.
Declaration
public PlacesClientImpl(Places.PlacesClient grpcClient, PlacesSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Places.PlacesClient | grpcClient | The underlying gRPC client. |
PlacesSettings | settings | The base PlacesSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC Places client
Declaration
public override Places.PlacesClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
Places.PlacesClient |
Overrides
Methods
AutocompletePlaces(AutocompletePlacesRequest, CallSettings)
Returns predictions for the given input.
Declaration
public override AutocompletePlacesResponse AutocompletePlaces(AutocompletePlacesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AutocompletePlacesRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
AutocompletePlacesResponse | The RPC response. |
Overrides
AutocompletePlacesAsync(AutocompletePlacesRequest, CallSettings)
Returns predictions for the given input.
Declaration
public override Task<AutocompletePlacesResponse> AutocompletePlacesAsync(AutocompletePlacesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AutocompletePlacesRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<AutocompletePlacesResponse> | A Task containing the RPC response. |
Overrides
GetPhotoMedia(GetPhotoMediaRequest, CallSettings)
Get a photo media with a photo reference string.
Declaration
public override PhotoMedia GetPhotoMedia(GetPhotoMediaRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetPhotoMediaRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PhotoMedia | The RPC response. |
Overrides
GetPhotoMediaAsync(GetPhotoMediaRequest, CallSettings)
Get a photo media with a photo reference string.
Declaration
public override Task<PhotoMedia> GetPhotoMediaAsync(GetPhotoMediaRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetPhotoMediaRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<PhotoMedia> | A Task containing the RPC response. |
Overrides
GetPlace(GetPlaceRequest, CallSettings)
Get the details of a place based on its resource name, which is a string
in the places/{place_id}
format.
Declaration
public override Place GetPlace(GetPlaceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetPlaceRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Place | The RPC response. |
Overrides
GetPlaceAsync(GetPlaceRequest, CallSettings)
Get the details of a place based on its resource name, which is a string
in the places/{place_id}
format.
Declaration
public override Task<Place> GetPlaceAsync(GetPlaceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetPlaceRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Place> | A Task containing the RPC response. |
Overrides
SearchNearby(SearchNearbyRequest, CallSettings)
Search for places near locations.
Declaration
public override SearchNearbyResponse SearchNearby(SearchNearbyRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
SearchNearbyRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
SearchNearbyResponse | The RPC response. |
Overrides
SearchNearbyAsync(SearchNearbyRequest, CallSettings)
Search for places near locations.
Declaration
public override Task<SearchNearbyResponse> SearchNearbyAsync(SearchNearbyRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
SearchNearbyRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<SearchNearbyResponse> | A Task containing the RPC response. |
Overrides
SearchText(SearchTextRequest, CallSettings)
Text query based place search.
Declaration
public override SearchTextResponse SearchText(SearchTextRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
SearchTextRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
SearchTextResponse | The RPC response. |
Overrides
SearchTextAsync(SearchTextRequest, CallSettings)
Text query based place search.
Declaration
public override Task<SearchTextResponse> SearchTextAsync(SearchTextRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
SearchTextRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<SearchTextResponse> | A Task containing the RPC response. |