Geocode service GetStandardizedIntersectionFields method

Fields contained in a standardized intersection returned from the StandardizeAddress() method.

NoteNote:

This method is only supported on pre-ArcGIS 10 address locators.

GetStandardizedIntersectionFields()

Return Value

A Fields object containing one of more Field objects. Each field is a match key for the geocode service.

Remarks

The fields returned from this method define the match keys of a standardized intersection address. The match keys map to one or more match fields in the reference layer. The match keys are dependent on the address style used by the geocode service.

Each match key name is a two letter sequence prefixed by the address type. The prefix letter is "A" for a non-intersection address type. The prefix letter is "I" for an intersection address type. For example, a match key field that stores the standardized street name for the first street in an intersection address may be named "ISN1". The alias for the same field may be more intuitive, such as "StreetName1". Within the geocode service, the match key "ISN" maps to a match field (e.g. "StreetName") which represents a field in the reference data that contain a street name for a street segment.

Use this method when constructing a PropertySet that represents a standardized address to pass to the GeocodeAddress() or FindAddressCandidates() methods or when inspecting an address that has been standardized using the StandardizeAddress() method. This may be applicable if modifying the standardized output of the geocode service or if using another means to standardize input (e.g. third-party standardizer).

Examples

C#

GeocodeService_GeocodeServer geocodeservice = new GeocodeService_GeocodeServer();

geocodeservice.Url = "http://localhost:6080/arcgis/services/GeocodeService/GeocodeServer";

 

Fields standardizedfields = geocodeservice.GetStandardizedIntersectionFields();

foreach (Field standardfield in standardizedfields.FieldArray)

{

      // Descriptive name

      System.Diagnostics.Debug.WriteLine("Alias Name: " + standardfield.AliasName);

      // Input field name

      System.Diagnostics.Debug.WriteLine("Name: " + standardfield.Name);

      // Is required?

      System.Diagnostics.Debug.WriteLine("Required: " + standardfield.Required.ToString());

      // Data type

      System.Diagnostics.Debug.WriteLine("Type: " + standardfield.Type.ToString());

}

VB.NET

Dim geocodeservice As GeocodeService_GeocodeServer = New GeocodeService_GeocodeServer()

geocodeservice.Url = "http://localhost:6080/arcgis/services/GeocodeService/GeocodeServer"

 
Dim standardizedfields As Fields = geocodeservice.GetStandardizedIntersectionFields()

Dim standardfield As Field

 
For Each standardfield In standardizedfields.FieldArray

      ' Descriptive name

      System.Diagnostics.Debug.WriteLine("Alias Name: " + standardfield.AliasName)

      ' Input field name

      System.Diagnostics.Debug.WriteLine("Name: " + standardfield.Name)

      ' Is required?

      System.Diagnostics.Debug.WriteLine("Required: " + standardfield.Required.ToString())

      ' Data type

      System.Diagnostics.Debug.WriteLine("Type: " + standardfield.Type.ToString())

Next

Java

String serviceURL = "http://localhost:6080/arcgis/services/GeocodeService/GeocodeServer";

GeocodeServerBindingStub geocodeService = new GeocodeServerBindingStub(serviceURL);

 

//Test GetStandardizedIntersectionFields

Fields standInterFields = geocodeService.getStandardizedIntersectionFields();

Set<String> setOfStdInterFields = new HashSet<String>();

 

System.out.println("Standardized Intersection Fields...");

 

for (Field stdInterField : standInterFields.getFieldArray()) {

      System.out.println(stdInterField.getName());

      setOfStdInterFields.add(stdInterField.getName());

}

11/8/2016