ESRI.ArcGIS.ADF.IMS
Geocode Method
See Also 
ESRI.ArcGIS.ADF.IMS.Geocode Namespace > Geocoder Class : Geocode Method




addressValues
The collection of AddressValue objects that define the values to geocode.
Performs Geocode operation on the associated FeatureLayer.

Syntax

Visual Basic (Declaration) 
Public Function Geocode( _
   ByVal addressValues As AddressValueCollection _
) As FeatureTable
Visual Basic (Usage)Copy Code
Dim instance As Geocoder
Dim addressValues As AddressValueCollection
Dim value As FeatureTable
 
value = instance.Geocode(addressValues)

Parameters

addressValues
The collection of AddressValue objects that define the values to geocode.

Return Value

A FeatureTable containing information on locations found.

Example

For an example of performing geocoding with this method, see AddressValueCollection .

Remarks

Geocode performs geocoding by sending the input AddressValueCollection to the ArcIMS server. All features with a score greater than MinScore are included in the table up to the MaxCandidates limit. If no features are found, an empty table with no rows will be returned.

Geocode returns a FeatureTable with the following columns: SCORE, ADDRESSFOUND, and SHAPE. The score ranges from 0 to a maximum of 100, but will never be less than the MinScore set before geocoding. The ADDRESSFOUND column will contain a standardized version of the values input in the AddressValueCollection. Note that ADDRESSFOUND will be the column name, even when geocoding other types of data, such as single-field geocoding. The SHAPE field will contain a Point (ESRI.ArcGIS.ADF.IMS.Geometry.Point). Cast the column's data to a Point object to obtain the X and Y coordinates of the geocoded location. The Point may also be used for display on the map, by using a GeometryElement or a TextElement, or their equivalents in the graphics layer of the Map web control.

The geocoded FeatureTable may be bound to a web control such as a GridView. Note that the SHAPE column may not display properly in a GridView, since it contains object data. It may be necessary to reformat the data or the control's display in order to properly view it. See the example referenced below for one way to handle the data.

See Also

© 2010 All Rights Reserved.