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
public INALocation GeocodeLocation (
    string address,
    ILocator AddressLocator
HRESULT GeocodeLocation(
  BSTR address,
  ILocator* AddressLocator,
  INALocation** Location


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.


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