This document is archived and information here might be outdated.  Recommended version.


INALocator2.GeocodeLocation Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INALocator2 Interface > INALocator2.GeocodeLocation Method
ArcGIS Developer Help

INALocator2.GeocodeLocation Method

The network location at the specified address. Honors side of street if the address locator does.

[Visual Basic .NET]
Public Function GeocodeLocation ( _
    ByVal address As String, _
    ByVal AddressLocator As ILocator _
) As INALocation
[C#]
public INALocation GeocodeLocation (
    string address,
    ILocator AddressLocator
);
[C++]
HRESULT GeocodeLocation(
  BSTR address,
  ILocator* AddressLocator
);
[C++]
Parameters
address [in]

address is a parameter of type BSTR AddressLocator [in]
AddressLocator is a parameter of type ILocator*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

GeocodeLocation returns an NALocation based on the input address and address locator specfied.

It does this by using the point returned by the address locator and then iterating through the NALocator's locator agents calling QueryLocationByPoint.

See Also

INALocator2 Interface