Class DestinationServiceClientImpl
DestinationService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Maps.Geocode.V4
Assembly: Google.Maps.Geocode.V4.dll
Syntax
public sealed class DestinationServiceClientImpl : DestinationServiceClient
Remarks
A service for retrieving destinations.
A destination provides hierarchical context about a place, which allows you to, for example, find apartment buildings within a larger apartment complex and vice versa. It also provides navigation points suitable for use cases such as ridesharing or delivery.
Constructors
DestinationServiceClientImpl(DestinationServiceClient, DestinationServiceSettings, ILogger)
Constructs a client wrapper for the DestinationService service, with the specified gRPC client and settings.
Declaration
public DestinationServiceClientImpl(DestinationService.DestinationServiceClient grpcClient, DestinationServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| DestinationService.DestinationServiceClient | grpcClient | The underlying gRPC client. |
| DestinationServiceSettings | settings | The base DestinationServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC DestinationService client
Declaration
public override DestinationService.DestinationServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| DestinationService.DestinationServiceClient |
Overrides
Methods
SearchDestinations(SearchDestinationsRequest, CallSettings)
This method performs a destination lookup and returns a list of destinations.
Declaration
public override SearchDestinationsResponse SearchDestinations(SearchDestinationsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchDestinationsRequest | 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 |
|---|---|
| SearchDestinationsResponse | The RPC response. |
Overrides
SearchDestinationsAsync(SearchDestinationsRequest, CallSettings)
This method performs a destination lookup and returns a list of destinations.
Declaration
public override Task<SearchDestinationsResponse> SearchDestinationsAsync(SearchDestinationsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchDestinationsRequest | 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<SearchDestinationsResponse> | A Task containing the RPC response. |