Click or drag to resize

LocatorTaskGeocodeAsync Method (SuggestResult, CancellationToken)

Executes a geocoding operation to find location candidates for a given address suggestion.

Namespace:  Esri.ArcGISRuntime.Tasks.Geocoding
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
Syntax
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(
	SuggestResult suggestResult,
	CancellationToken cancellationToken
)

Parameters

suggestResult
Type: Esri.ArcGISRuntime.Tasks.GeocodingSuggestResult
The suggested address for which to find location candidates.
cancellationToken
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