You can create a locator view, a version of a geocode service with settings or geocoding preferences applied, from any geocode services added to your project, including geocode services added from an item on your portal, geocode services added from an ArcGIS Server connection, or geocode services added automatically to your project from utility services on your portal. Any settings you configure on a locator view are applied when you use the locator to generate suggestions in the Locate pane, to search for places in the Locate pane, to geocode with the Geocode Table pane or with other geoprocessing tools, and to identify places using What's Here? or Address Inspector. You can create multiple locator views of the same geocode services with different settings applied as long as you provide different names, and you can automate in Python using locator views as long as the original geocode service is accessible in your scripting environment.
Create a locator view of the ArcGIS World Geocoding Service to perform local geocoding
You can specify an extent to limit geocoding to a region or locality.
If you regularly geocode within a region or locality but use the ArcGIS World Geocoding Service, it may be useful to create a locator view that applies an extent setting to the geocode services. This example creates a locator view that limits geocoding to San Diego, California.
- Add the
ArcGIS World Geocoding Service to your project.
If you are signed in to a portal that has the ArcGIS World Geocoding Service configured as a utility service, the geocode services are added to your project automatically. If the service is not available automatically, you can add it through an ArcGIS Server connection.
- Open the Locate pane, and search for San Diego, CA.
The map zooms to San Diego, California.
- Right-click the ArcGIS World Geocoding Service in the Locators folder in the Catalog pane, and click Create View .
The Configure View dialog box appears.
- Provide a unique name for your new locator view, for instance, WGS_SanDiego.
- Open the Geocoding options tab of the Configure View dialog box.
- Expand the Match Options section, and scroll down to the Extent drop-down menu.
- Select the Current Display Extent option from the drop-down menu.
The extent values displayed below the drop-down menu update to show the current extent of the map, which should be zoomed in to San Diego, California.
- Click OK to save your new locator view.
The WGS_SanDiego locator view now shows as a new geocode service in the Locators folder of the Catalog pane.
- Use the locator view in the Locate pane to search for places or addresses.
Notice that only places in San Diego, California, are returned from WGS_SanDiego.
- Use the locator view in the Geocode Table pane.
Notice that all batch geocoding results returned from using WGS_SanDiego in the Geocode Table pane are in San Diego, California.
Create a locator view of the ArcGIS World Geocoding Service to perform point of interest geocoding
You can specify an extent to limit geocoding to a region or locality.
If you regularly geocode points of interest rather than addresses but use the ArcGIS World Geocoding Service, it may be useful to create a locator view that applies a category setting to the geocode services. This example creates a locator view that limits geocoding to the POI category.
- Add the
ArcGIS World Geocoding Service to your project.
If you are signed in to a portal that has the ArcGIS World Geocoding Service configured as a utility service, the geocode services will be added to your project automatically. If the service is not available automatically, you can add it through an ArcGIS Server connection.
- Right-click the ArcGIS World Geocoding Service in the Locators folder in the Catalog pane, and click Create View .
The Configure View dialog box appears.
- Provide a unique name for your new locator view, for instance, WGS_POI.
- Open the Geocoding options tab of the Configure View dialog box.
- Expand the Match Options section, and scroll down to Categories to support.
- Select the Only categories selected here option, and check the box for the POI category group.
- Click OK to save the locator view.
The WGS_POI locator view now shows as a new geocode service in the Locators folder of the Catalog pane.
- Use the locator view in the Locate pane to search for places or addresses.
Notice that only point of interest results are returned from WGS_POI and not addresses.
- Use the locator view in the Geocode Table pane.
Notice that all batch geocoding results returned from using WGS_POI in the Geocode Table pane are points of interest and not addresses.
Create a locator view of the ArcGIS World Geocoding Service to return preferred labels
You can specify a preferred city label to override the default value of a geocode services.
If you regularly need to view geocoding results with the local city value displayed rather than the default postal city returned for US addresses by the ArcGIS World Geocoding Service, it may be useful to specify a preferred label value setting to the service. This example creates a locator view that returns a local city as the preferred city label.
- Add the
ArcGIS World Geocoding Service to your project.
If you are signed in to a portal that has the ArcGIS World Geocoding Service configured as a utility service, the geocode services are added to your project automatically. If the service is not available automatically, you can add it through an ArcGIS Server connection.
- Right-click the ArcGIS World Geocoding Service in the Locators folder in the Catalog pane, and click Create View .
The Configure View dialog box appears.
- Provide a unique name for your new locator view, for instance, WGS_LocalCity.
- Open the Geocoding options tab of the Configure View dialog box.
- Expand the Display Options section, and scroll down Preferred city name.
- Select the Local city name option.
- Click OK to save the locator view.
The WGS_LocalCity locator view now shows as a new geocode service in the Locators folder of the Catalog pane.
- Use the locator view in the Locate pane to search for places or addresses in a region where the postal city and local city are different.
Notice that all results returned from WGS_LocalCity have the local city label value where it applies. Notice that this setting also applies to suggestions generated in the Locate pane.
- Use the locator view in the Geocode Table pane.
Notice that all batch geocoding results returned from using WGS_LocalCity in the Geocode Table pane have the local city label value where it applies.
There are a large number of settings or geocoding preferences that can be applied when creating locator views depending on your needs, and those settings are applied to all geocoding operations in ArcGIS Pro.