ArcObjects Library Reference (Location)  

IGeocodeServer.StandardizeAddress Method

Standardizes an address. One of the properties returned indicates if it is an intersection or not.

[Visual Basic .NET]
Public Function StandardizeAddress ( _
    ByVal address As IPropertySet, _
    ByVal propMods As IPropertySet _
) As IPropertySet
[C#]
public IPropertySet StandardizeAddress (
    IPropertySet address,
    IPropertySet propMods
);
[C++]
HRESULT StandardizeAddress(
  IPropertySet* address,
  IPropertySet* propMods,
  IPropertySet** standardizedAddress
);
[C++]

Parameters

address [in]

  address is a parameter of type IPropertySet

propMods [in]

  propMods is a parameter of type IPropertySet

standardizedAddress [out, retval]

  standardizedAddress is a parameter of type IPropertySet

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The StandardizeAddress method standardizes an address using the geocoding rules used by the GeocodeServer.

The address parameter is a PropertySet that contains the address to standardize. The names of the properties are the input address fields used by the GeocodeServer, as defined by the GetAddressFields method.

The propMods parameter is a PropertySet containing the GeocodeServer properties to use to standardize the address. The GetLocatorProperties method returns the set of default geocoding properties for the GeocodeServer. In some cases, you may want to modify the properties used to standardize an address. Modify the properties in the PropertySet returned by the GetLocatorProperties method, and pass the modified PropertySet to the propMods parameter. The PropertySet passed to the propMods parameter only needs to contain properties that are different than the default properties for the GeocodeServer. If you don't wish to modify any of the default properties returned used by the GeocodeServer, you can either pass a null value to the propMods parameter, or pass the unmodified PropertySet returned by the GetLocatorPropertiesmethod.

The PropertySet returned by the StandardizeAddress method contains the standardized address. In addition to the standardized address components, this PropertySet contains a property named "Addr_type" that indicates the type of address. If the value of this property is "A", then the address was standardized as a non-intersection address. If the value of this property is "I", then the address was standardized as an intersection address. The set of remaining properties will depend on the value of this property. If the standardized address returned is a non-intersection address, then use the names of the fields returned by the GetStandardizedFields method to retrieve the components of the standardized address. If the standardized address returned is an intersection address, then use the names of the fields returned by the GetStandardizedIntersectionFields method to retrieve the components of the standardized address.

See Also

IGeocodeServer Interface