ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping.Geocoding Namespace / LocatorManager Class / GeocodeAsync Method
The address/location to geocode.
Should the candidate results be displayed on the active map?
Should the map zoom to the first candidate result?

In This Topic
    GeocodeAsync Method
    In This Topic
    Perform a geocode operation. Geocode results are returned according to the active locator providers.
    Syntax

    Parameters

    location
    The address/location to geocode.
    showResultsOnMap
    Should the candidate results be displayed on the active map?
    zoomToFirstResult
    Should the map zoom to the first candidate result?

    Return Value

    Task of List of GeocodeResult objects. If no locators can be found then null is returned.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also