Class AreaInsightsClientImpl
AreaInsights client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Maps.AreaInsights.V1
Assembly: Google.Maps.AreaInsights.V1.dll
Syntax
public sealed class AreaInsightsClientImpl : AreaInsightsClient
Remarks
Service definition for the Places Insights API.
Constructors
AreaInsightsClientImpl(AreaInsightsClient, AreaInsightsSettings, ILogger)
Constructs a client wrapper for the AreaInsights service, with the specified gRPC client and settings.
Declaration
public AreaInsightsClientImpl(AreaInsights.AreaInsightsClient grpcClient, AreaInsightsSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
AreaInsights.AreaInsightsClient | grpcClient | The underlying gRPC client. |
AreaInsightsSettings | settings | The base AreaInsightsSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC AreaInsights client
Declaration
public override AreaInsights.AreaInsightsClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
AreaInsights.AreaInsightsClient |
Overrides
Methods
ComputeInsights(ComputeInsightsRequest, CallSettings)
Compute Insights RPC
This method lets you retrieve insights about areas using a variaty of
filter such as: area, place type, operating status, price level
and ratings. Currently "count" and "places" insights are supported. With
"count" insights you can answer questions such as "How many restaurant are
located in California that are operational, are inexpensive and have an
average rating of at least 4 stars" (see insight
enum for more details).
With "places" insights, you can determine which places match the
requested filter. Clients can then use those place resource names to fetch
more details about each individual place using the Places API.
Declaration
public override ComputeInsightsResponse ComputeInsights(ComputeInsightsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ComputeInsightsRequest | 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 |
---|---|
ComputeInsightsResponse | The RPC response. |
Overrides
ComputeInsightsAsync(ComputeInsightsRequest, CallSettings)
Compute Insights RPC
This method lets you retrieve insights about areas using a variaty of
filter such as: area, place type, operating status, price level
and ratings. Currently "count" and "places" insights are supported. With
"count" insights you can answer questions such as "How many restaurant are
located in California that are operational, are inexpensive and have an
average rating of at least 4 stars" (see insight
enum for more details).
With "places" insights, you can determine which places match the
requested filter. Clients can then use those place resource names to fetch
more details about each individual place using the Places API.
Declaration
public override Task<ComputeInsightsResponse> ComputeInsightsAsync(ComputeInsightsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ComputeInsightsRequest | 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<ComputeInsightsResponse> | A Task containing the RPC response. |