Click or drag to resize

LocatorTaskGeocodeAsync Method (DictionaryString, String, CancellationToken)

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

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

Parameters

searchValues
Type: System.Collections.GenericDictionaryString, String
A dictionary containing the address for which to find location candidates. Each entry in the dictionary represents one line of the address.
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