ArcObjects Library Reference (NetworkAnalyst)  

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,
  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

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