Class GeocodeServiceClientImpl
GeocodeService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Maps.Geocode.V4
Assembly: Google.Maps.Geocode.V4.dll
Syntax
public sealed class GeocodeServiceClientImpl : GeocodeServiceClient
Remarks
A service for performing geocoding.
Constructors
GeocodeServiceClientImpl(GeocodeServiceClient, GeocodeServiceSettings, ILogger)
Constructs a client wrapper for the GeocodeService service, with the specified gRPC client and settings.
Declaration
public GeocodeServiceClientImpl(GeocodeService.GeocodeServiceClient grpcClient, GeocodeServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeService.GeocodeServiceClient | grpcClient | The underlying gRPC client. |
| GeocodeServiceSettings | settings | The base GeocodeServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC GeocodeService client
Declaration
public override GeocodeService.GeocodeServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| GeocodeService.GeocodeServiceClient |
Overrides
Methods
GeocodeAddress(GeocodeAddressRequest, CallSettings)
This method performs an address geocode, which maps an address to a LatLng. It also provides structured information about the address.
Declaration
public override GeocodeAddressResponse GeocodeAddress(GeocodeAddressRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeAddressRequest | 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 |
|---|---|
| GeocodeAddressResponse | The RPC response. |
Overrides
GeocodeAddressAsync(GeocodeAddressRequest, CallSettings)
This method performs an address geocode, which maps an address to a LatLng. It also provides structured information about the address.
Declaration
public override Task<GeocodeAddressResponse> GeocodeAddressAsync(GeocodeAddressRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeAddressRequest | 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<GeocodeAddressResponse> | A Task containing the RPC response. |
Overrides
GeocodeLocation(GeocodeLocationRequest, CallSettings)
This method performs a location geocode, which maps a LatLng to an address. It also provides structured information about the address.
Declaration
public override GeocodeLocationResponse GeocodeLocation(GeocodeLocationRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeLocationRequest | 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 |
|---|---|
| GeocodeLocationResponse | The RPC response. |
Overrides
GeocodeLocationAsync(GeocodeLocationRequest, CallSettings)
This method performs a location geocode, which maps a LatLng to an address. It also provides structured information about the address.
Declaration
public override Task<GeocodeLocationResponse> GeocodeLocationAsync(GeocodeLocationRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeLocationRequest | 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<GeocodeLocationResponse> | A Task containing the RPC response. |
Overrides
GeocodePlace(GeocodePlaceRequest, CallSettings)
This method performs a geocode lookup using a place ID.
Declaration
public override GeocodeResult GeocodePlace(GeocodePlaceRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodePlaceRequest | 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 |
|---|---|
| GeocodeResult | The RPC response. |
Overrides
GeocodePlaceAsync(GeocodePlaceRequest, CallSettings)
This method performs a geocode lookup using a place ID.
Declaration
public override Task<GeocodeResult> GeocodePlaceAsync(GeocodePlaceRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodePlaceRequest | 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<GeocodeResult> | A Task containing the RPC response. |