Click or drag to resize

LocatorTaskGeocodeAsync Method (String, GeocodeParameters, CancellationToken)

Executes a geocoding operation to find location candidates for a given address and set of search parameters.

Namespace:  Esri.ArcGISRuntime.Tasks.Geocoding
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(
	string searchText,
	GeocodeParameters parameters,
	CancellationToken cancellationToken


Type: SystemString
The address for which to find location candidates.
Type: Esri.ArcGISRuntime.Tasks.GeocodingGeocodeParameters
Additional search parameters to apply to the geocoding operation.
Type: System.ThreadingCancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value

Type: TaskIReadOnlyListGeocodeResult
A task that represents the asynchronous geocoding operation. The value of the task result contains a read-only collection of GeocodeResult objects.
See Also