Combine multiple locators into a composite locator

About the composite locator

A composite locator is a virtual locator that consists of one or more individual locators or geocode services. The composite locator can be used to combine geocoding from many sources into a single locator, whether the composite is used locally or as a service. Using a composite locator allows you to geocode so that addresses can be matched against multiple locators based on different datasets at once to increase the geocoding accuracy of the matched results.

Composite locator

If you created your own locator based on the authoritative data for the city of Atlanta and need to geocode locations in Atlanta and bordering cities, a composite locator consisting of a locator based on Atlanta street reference data and the ArcGIS World Geocoding Service can be used to return the best matches. The composite locator allows you to create a filter for participating locators to ensure that addresses in Atlanta are matched using your own Atlanta streets locator, and those in bordering cities are matched using the ArcGIS World Geocoding Service.

Results of composite locator with Atlanta street locator and ArcGIS World Geocoding Service to match bordering cities

The ability to fall back to another locator to increase the probability of finding the best match is another reason to use a composite locator. For example, the county government may create a composite locator of individual locators that are based on a street dataset from the transportation department and a parcel dataset from the assessor's office and use it to locate residents who have excessive water runoff into the street. The parcel locator is listed first because it refers to an exact feature in the reference data, making it more accurate than the street centerline locator, which is based on house number ranges. If the address is not matched to the parcel, the locator can fall back to the street centerline locator where it finds the next best match.

Results of composite locator showing fallback from parcel to street match location

The composite locator stores references to the participating locators and geocode services but does not contain the actual address information, indexes, and reference data of the individual locators. Composite locators can be added to new and existing projects in much the same way as individual locators.

Building a composite locator

Building a composite locator consists of the following workflow:

  • Create individual locators or identify existing locators or geocode services.
  • Use the Create Composite Address Locator geoprocessing tool to specify the participating locators.
  • Map the input address fields.
  • Optionally define the selection criteria.
  • Specify the output composite locator name and save destination.

To build a composite locator, begin with existing locators. While in the initial phases of building your composite locator, plan your search process. For example, you can search a locator containing local road data first. Then, if no satisfactory results appear, you can have the address searched by a locator containing statewide or national roads. Finally, you may want to use a locator that searches for a specific zone, such as a postal code or city.

Creating an individual locator in a composite locator

When building a composite locator, you may want to specify which locators are used based on the values of input fields. For example, if your composite locator uses a standard locator that contains road data for a specific city, you may want to filter out any addresses that do not have that particular city name. Using selection criteria disqualifies participating locators that do not meet the criteria on a particular address so that the geocoding process is more efficient. If no selection criteria are specified, addresses are geocoded against all the participating locators.

Selection criteria

Selection criteria are used when a table of addresses is geocoded. They do not apply when finding addresses in a single-line input in the Locate pane.

The following steps show how to create a composite locator using the Create Composite Address Locator geoprocessing tool:

  1. Open the Geoprocessing pane.
    1. Click the Tools button Tools on the Analysis tab at the top of your workspace.

      Tools button

  2. Choose the Create Composite Address Locator tool.
    1. In the Geoprocessing pane, choose the Toolboxes option.
    2. Choose the Geocoding Tools option from the list of geoprocessing toolboxes.
    3. Choose the Create Composite Address Locator tool from the list of geocoding tools.

      Create Composite Address Locator tool

  3. Click the Browse button Browse next to the Address Locators text box.

    The Address Locators dialog box appears.

  4. Browse to the first locator you want to use in your composite locator, and click Open.
  5. Repeat the process of adding locators to the Address Locators text boxes (more appear as needed) until you add all the locators you want to include in your composite locator.

    When a participating locator is added to the Address Locators text box, it is automatically given a name that appears in the Name text box. In the process of geocoding a table of addresses, the name of the individual locator the address was geocoded to stores as an attribute in the output feature class. Optionally, you can click the name and change it. The name cannot contain spaces or special symbols. The maximum length of the name is 14 characters.

    The order in which the locators appear determines the order in which they are used in the geocoding process. The locator at the top of the list is used first, and so on.

  6. Review the values in the Field Map parameter of the tool.

    Each participating locator may specify a different set of input fields for geocoding. When you add the participating locators to the tool, the input fields are automatically created and mapped. The fields and field contents are generated by the participating locators. Each of the unique input fields is listed in the Field Map parameter, and you see a list of all the input field occurrences (subfields) for each participating locator. These fields are the input fields for the composite locator.

    You can review the field mappings and decide if you need to modify anything. The composite locator creates input fields with some default field names and properties. For example, the field names Street, City, State, and ZIP are populated by two participating locators in the image below in step 11. Occasionally, you may see that two participating locators have a field that should map the same but fails to do so because it is named differently in each participating locator. For example, two locators may both have postal code information, but one may reference the data as ZIP and the other as ZIPCode. These two values should map to the same input field, but the two different names may cause them not to. The following step discusses how to move a participating locator subfield to a different input field as part of the process of field mappings.

    Caution:

    Do not delete any locator fields from the Field Map parameter. Composite locators created without all locator fields are invalid.

  7. Map the input address fields for the participating locators.

    Review the input fields for each participating locator and determine the total input fields for the composite locator. These fields appear on the Create Composite Address Locator tool as the input fields for the composite locator.

    Field mapping may involve moving or regrouping a participating locator input field to the appropriate input field for the composite locator. To do so, select the Input Field value that you want to modify. The subfield values appear to the right. Click the arrow to the left of the subfield value for the participating locator you want to move, select the location you want to move it to from the drop-down menu, and click the Move To Selected button. You can also move input fields up or down using the up arrow button Move Item Up or the down arrow button Move Item Down, or you can delete input fields by clicking the Delete Selected Item(s) button Delete Selected Item(s). These options appear when you click an individual input field.

    The composite locator creates input fields with some default field names and properties. To view this information, click the input field that you want to view, and click the Properties tab on the right. Each field contains a name and an alias name, that is, the name that appears on the Geocode Addresses tool when you geocode with your new composite locator. You can modify the properties of the field by modifying the values displayed in the text boxes.

    If you need to create a new input field for the composite locator, follow the substeps below:

    1. Click the Add New Field button Add New Field.

      A New Field text box appears under your existing input fields.

    2. Type a name for your new input field.
    3. With your new input field selected, click the Properties tab to the right.
    4. Type the name of the input address field in the Name text box.

      The name should not contain spaces or special symbols. The maximum length of the name is 32 characters.

    5. Type any aliases in the Alias text box if you want to change the name that displays on the Geocode Addresses tool.

      The alias name can contain spaces or special symbols.

    6. Specify the input field size (in characters).
    7. Specify if the input field is required when geocoding a table of addresses using the provided check box.
    8. Optionally add subfields to the input field by clicking the Subfield tab next to the Properties tab, clicking the Add Subfield drop-down list, and selecting a value from the list.

      Once created, subfields can be moved and edited much like those of any other input field.

    Setting selection criteria is enabled after field mappings complete. Only one selection criterion is supported for each participating locator.

  8. Optionally specify the selection criteria.
    1. In the Selection Criteria portion of the tool, type an optional expression in the text box to the right of each participating locator under the Selection Criteria column.

      Only one selection criterion can be added for each participating locator. An example of a useful selection criterion is "City" = 'Atlanta', which you would type directly into the text box.

  9. An output locator name and destination are automatically selected. To change these values, click the Browse button Browse next to the Output Composite Address Locator text box.

    The Output Composite Address Locator dialog box appears.

  10. Specify where to store the locator, name it, and click Save.
  11. Optionally, specify a Result Order.

    You might want to modify this setting if you have one or more multirole locators in your composite locator or if you have one or more geocoding services in your composite locator. For more information about how Result Order functions, see Composite locator tuning tips.

    • Use locator order—Participating locators are in the order they were added to the Create Composite Address Locator tool and adhere to traditional locator fallback described above.
    • Order by role and score—Participating locators are grouped by role and fallback order. It is recommended that you use this option if you have a multirole locator and several single-role locators. This automatically orders your locators and roles into a recommended, optimal fallback order.

    • Custom order—A customizable fallback order for participating locators allows you to insert locators between the roles of a multirole locator. Locators cannot be inserted between multirole geocode services.

  12. Click Run Run.

    Create Composite Address Locator tool

  13. If you need helpful tips and reminders about any of the input categories on this tool, click any of the Information buttons Information next to the input categories for additional information.

When the process finishes, the locator is added to the Locators folder in the Catalog pane. You can also find your locator in the save location you previously specified. You can add your newly created composite locator to a new or existing project where it can be used to geocode a table of addresses.

Caution:

When selecting participating locators, you can choose to reference another composite locator. However, be sure that you do not loop locators. For example, if composite locator A uses composite locator B as a participating locator, and composite locator B uses composite locator A as a participating locator, a repeating loop is created and geocoding fails.

Note:
  • The maximum number of participating locators in a composite locator is 30, but it is recommended that you use no more than 10; otherwise, geocoding can be significantly slower.
  • The spatial reference of the first participating locator is used as the spatial reference of the composite locator. When the locator is used, the geocode result is saved with the same spatial reference as the locator by default.
  • If the participating locators in a local composite locator are created using the Create Locator or Create Feature Locator tools, the composite locator returns suggestions from those locators in the Locate pane. Participating locators created with the Create Address Locator tool do not return suggestions by a composite locator that is stored in a file folder.
  • Take caution when adding a locator created with the Create Feature Locator tool to a composite locator because field mapping of the Name feature locator role field may lead to unexpected behavior. Best practice is to use a locator created with the Create Locator tool based on the POI role instead.

Related topics