Class GeocodeService.GeocodeServiceBase
Base class for server-side implementations of GeocodeService
Namespace: Google.Maps.Geocode.V4
Assembly: Google.Maps.Geocode.V4.dll
Syntax
[BindServiceMethod(typeof(GeocodeService), "BindService")]
public abstract class GeocodeService.GeocodeServiceBase
Methods
GeocodeAddress(GeocodeAddressRequest, ServerCallContext)
This method performs an address geocode, which maps an address to a LatLng. It also provides structured information about the address.
Declaration
public virtual Task<GeocodeAddressResponse> GeocodeAddress(GeocodeAddressRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeAddressRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<GeocodeAddressResponse> | The response to send back to the client (wrapped by a task). |
GeocodeLocation(GeocodeLocationRequest, ServerCallContext)
This method performs a location geocode, which maps a LatLng to an address. It also provides structured information about the address.
Declaration
public virtual Task<GeocodeLocationResponse> GeocodeLocation(GeocodeLocationRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeLocationRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<GeocodeLocationResponse> | The response to send back to the client (wrapped by a task). |
GeocodePlace(GeocodePlaceRequest, ServerCallContext)
This method performs a geocode lookup using a place ID.
Declaration
public virtual Task<GeocodeResult> GeocodePlace(GeocodePlaceRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodePlaceRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<GeocodeResult> | The response to send back to the client (wrapped by a task). |