This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INALocator2 Interface > INALocator2.GeocodeLocation Method (ArcObjects .NET 10.5 SDK) |
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,
INALocation** Location
);
[C++]
Parameters address [in] address is a parameter of type BSTR AddressLocator [in]
AddressLocator is a parameter of type ILocator Location [out, retval]
Location is a parameter of type INALocation
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.