Class GeocodeService.GeocodeServiceClient
Client for GeocodeService
Inheritance
Inherited Members
Namespace: Google.Maps.Geocode.V4
Assembly: Google.Maps.Geocode.V4.dll
Syntax
public class GeocodeService.GeocodeServiceClient : ClientBase<GeocodeService.GeocodeServiceClient>
Constructors
GeocodeServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected GeocodeServiceClient()
GeocodeServiceClient(CallInvoker)
Creates a new client for GeocodeService that uses a custom CallInvoker.
Declaration
public GeocodeServiceClient(CallInvoker callInvoker)
Parameters
| Type | Name | Description |
|---|---|---|
| CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
GeocodeServiceClient(ChannelBase)
Creates a new client for GeocodeService
Declaration
public GeocodeServiceClient(ChannelBase channel)
Parameters
| Type | Name | Description |
|---|---|---|
| ChannelBase | channel | The channel to use to make remote calls. |
GeocodeServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected GeocodeServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
GeocodeAddress(GeocodeAddressRequest, CallOptions)
This method performs an address geocode, which maps an address to a LatLng. It also provides structured information about the address.
Declaration
public virtual GeocodeAddressResponse GeocodeAddress(GeocodeAddressRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeAddressRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| GeocodeAddressResponse | The response received from the server. |
GeocodeAddress(GeocodeAddressRequest, Metadata, DateTime?, CancellationToken)
This method performs an address geocode, which maps an address to a LatLng. It also provides structured information about the address.
Declaration
public virtual GeocodeAddressResponse GeocodeAddress(GeocodeAddressRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeAddressRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| GeocodeAddressResponse | The response received from the server. |
GeocodeAddressAsync(GeocodeAddressRequest, CallOptions)
This method performs an address geocode, which maps an address to a LatLng. It also provides structured information about the address.
Declaration
public virtual AsyncUnaryCall<GeocodeAddressResponse> GeocodeAddressAsync(GeocodeAddressRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeAddressRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<GeocodeAddressResponse> | The call object. |
GeocodeAddressAsync(GeocodeAddressRequest, Metadata, DateTime?, CancellationToken)
This method performs an address geocode, which maps an address to a LatLng. It also provides structured information about the address.
Declaration
public virtual AsyncUnaryCall<GeocodeAddressResponse> GeocodeAddressAsync(GeocodeAddressRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeAddressRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<GeocodeAddressResponse> | The call object. |
GeocodeLocation(GeocodeLocationRequest, CallOptions)
This method performs a location geocode, which maps a LatLng to an address. It also provides structured information about the address.
Declaration
public virtual GeocodeLocationResponse GeocodeLocation(GeocodeLocationRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeLocationRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| GeocodeLocationResponse | The response received from the server. |
GeocodeLocation(GeocodeLocationRequest, Metadata, DateTime?, CancellationToken)
This method performs a location geocode, which maps a LatLng to an address. It also provides structured information about the address.
Declaration
public virtual GeocodeLocationResponse GeocodeLocation(GeocodeLocationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeLocationRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| GeocodeLocationResponse | The response received from the server. |
GeocodeLocationAsync(GeocodeLocationRequest, CallOptions)
This method performs a location geocode, which maps a LatLng to an address. It also provides structured information about the address.
Declaration
public virtual AsyncUnaryCall<GeocodeLocationResponse> GeocodeLocationAsync(GeocodeLocationRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeLocationRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<GeocodeLocationResponse> | The call object. |
GeocodeLocationAsync(GeocodeLocationRequest, Metadata, DateTime?, CancellationToken)
This method performs a location geocode, which maps a LatLng to an address. It also provides structured information about the address.
Declaration
public virtual AsyncUnaryCall<GeocodeLocationResponse> GeocodeLocationAsync(GeocodeLocationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeLocationRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<GeocodeLocationResponse> | The call object. |
GeocodePlace(GeocodePlaceRequest, CallOptions)
This method performs a geocode lookup using a place ID.
Declaration
public virtual GeocodeResult GeocodePlace(GeocodePlaceRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodePlaceRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| GeocodeResult | The response received from the server. |
GeocodePlace(GeocodePlaceRequest, Metadata, DateTime?, CancellationToken)
This method performs a geocode lookup using a place ID.
Declaration
public virtual GeocodeResult GeocodePlace(GeocodePlaceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodePlaceRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| GeocodeResult | The response received from the server. |
GeocodePlaceAsync(GeocodePlaceRequest, CallOptions)
This method performs a geocode lookup using a place ID.
Declaration
public virtual AsyncUnaryCall<GeocodeResult> GeocodePlaceAsync(GeocodePlaceRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodePlaceRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<GeocodeResult> | The call object. |
GeocodePlaceAsync(GeocodePlaceRequest, Metadata, DateTime?, CancellationToken)
This method performs a geocode lookup using a place ID.
Declaration
public virtual AsyncUnaryCall<GeocodeResult> GeocodePlaceAsync(GeocodePlaceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodePlaceRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<GeocodeResult> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration.
Declaration
protected override GeocodeService.GeocodeServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| GeocodeService.GeocodeServiceClient |