Show / Hide Table of Contents

Method GeocodeAsync

GeocodeAsync(String)

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

Declaration
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(string searchText)
Parameters
Type Name Description
String searchText

The address for which to find location candidates.

Returns
Type Description
Task<IReadOnlyList<GeocodeResult>>

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

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.0
Relevant samples
Find address: Find the location for an address.
Find place: Find places of interest near a location or within a specific area.
Offline geocode: Geocode addresses to locations and reverse geocode locations to addresses offline.

GeocodeAsync(String, CancellationToken)

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

Declaration
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(string searchText, CancellationToken cancellationToken)
Parameters
Type Name Description
String searchText

The address for which to find location candidates.

CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
Task<IReadOnlyList<GeocodeResult>>

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

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.0

GeocodeAsync(String, GeocodeParameters)

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

Declaration
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(string searchText, GeocodeParameters parameters)
Parameters
Type Name Description
String searchText

The address for which to find location candidates.

GeocodeParameters parameters

Additional search parameters to apply to the geocoding operation.

Returns
Type Description
Task<IReadOnlyList<GeocodeResult>>

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

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.0
Relevant samples
Find place: Find places of interest near a location or within a specific area.

GeocodeAsync(String, GeocodeParameters, CancellationToken)

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

Declaration
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(string searchText, GeocodeParameters parameters, CancellationToken cancellationToken)
Parameters
Type Name Description
String searchText

The address for which to find location candidates.

GeocodeParameters parameters

Additional search parameters to apply to the geocoding operation.

CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
Task<IReadOnlyList<GeocodeResult>>

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

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.0

GeocodeAsync(Dictionary<String, String>)

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

Declaration
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(Dictionary<string, string> searchValues)
Parameters
Type Name Description
Dictionary<String, String> searchValues

A dictionary containing the address for which to find location candidates. Each entry in the dictionary represents one line of the address.

Returns
Type Description
Task<IReadOnlyList<GeocodeResult>>

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

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.0

GeocodeAsync(Dictionary<String, String>, CancellationToken)

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

Declaration
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(Dictionary<string, string> searchValues, CancellationToken cancellationToken)
Parameters
Type Name Description
Dictionary<String, String> searchValues

A dictionary containing the address for which to find location candidates. Each entry in the dictionary represents one line of the address.

CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
Task<IReadOnlyList<GeocodeResult>>

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

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.0

GeocodeAsync(Dictionary<String, String>, GeocodeParameters)

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

Declaration
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(Dictionary<string, string> searchValues, GeocodeParameters parameters)
Parameters
Type Name Description
Dictionary<String, String> searchValues

A dictionary containing the address for which to find location candidates. Each entry in the dictionary represents one line of the address.

GeocodeParameters parameters

Additional search parameters to apply to the geocoding operation.

Returns
Type Description
Task<IReadOnlyList<GeocodeResult>>

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

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.0

GeocodeAsync(Dictionary<String, String>, GeocodeParameters, CancellationToken)

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

Declaration
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(Dictionary<string, string> searchValues, GeocodeParameters parameters, CancellationToken cancellationToken)
Parameters
Type Name Description
Dictionary<String, String> searchValues

A dictionary containing the address for which to find location candidates. Each entry in the dictionary represents one line of the address.

GeocodeParameters parameters

Additional search parameters to apply to the geocoding operation.

CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
Task<IReadOnlyList<GeocodeResult>>

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

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.0

GeocodeAsync(SuggestResult)

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

Declaration
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(SuggestResult suggestResult)
Parameters
Type Name Description
SuggestResult suggestResult

The suggested address for which to find location candidates.

Returns
Type Description
Task<IReadOnlyList<GeocodeResult>>

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

See Also
SuggestAsync(String)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0

GeocodeAsync(SuggestResult, CancellationToken)

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

Declaration
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(SuggestResult suggestResult, CancellationToken cancellationToken)
Parameters
Type Name Description
SuggestResult suggestResult

The suggested address for which to find location candidates.

CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
Task<IReadOnlyList<GeocodeResult>>

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

See Also
SuggestAsync(String)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.0

GeocodeAsync(SuggestResult, GeocodeParameters)

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

Declaration
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(SuggestResult suggestResult, GeocodeParameters parameters)
Parameters
Type Name Description
SuggestResult suggestResult

The suggested address for which to find location candidates.

GeocodeParameters parameters

Additional search parameters to apply to the geocoding operation.

Returns
Type Description
Task<IReadOnlyList<GeocodeResult>>

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

See Also
SuggestAsync(String)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0

GeocodeAsync(SuggestResult, GeocodeParameters, CancellationToken)

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

Declaration
public Task<IReadOnlyList<GeocodeResult>> GeocodeAsync(SuggestResult suggestResult, GeocodeParameters parameters, CancellationToken cancellationToken)
Parameters
Type Name Description
SuggestResult suggestResult

The suggested address for which to find location candidates.

GeocodeParameters parameters

Additional search parameters to apply to the geocoding operation.

CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
Task<IReadOnlyList<GeocodeResult>>

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

See Also
SuggestAsync(String)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.0
In This Article
Back to top Copyright © 2022 Esri.