Zooming effectively to geocode results in client applications such as ArcGIS Pro and Map Viewer Classic is related to the extents that are included for each feature in the reference data used to build the locator. Below is an example of the extent coordinates defined for the feature, which are mapped during locator creation, and the zoom result of a searched location.
When modeling reference data for creating locators, include the extent (bounding box) coordinates of each feature so that the client application can zoom effectively to geocode and search results. If you do not include the bounding box coordinates for the features, your geocode results use a default zoom scale, which may not be appropriate for the geocode result. The following four elements define the extent of the feature. The ArcGIS World Geocoding Service, for example, contains these predefined values.
Element | Description |
---|---|
Xmin | Minimum x-coordinate value |
Ymin | Minimum y-coordinate value |
Xmax | Maximum x-coordinate value |
Ymax | Maximum y-coordinate value |
You can create these fields and assign the values in your reference data using the Calculate Geometry Attributes tool. They can be in latitude-longitude coordinates or projected values that are in the same spatial reference as the reference data. You can specify these fields when you create the locator.
Note:
When creating a locator based on polygons and the extent coordinates for each feature have been calculated and are used to build the locator, it is not expected that the extent coordinates returned by the locator will be the same as the reference data.
There may be cases where the bounding box values generated by these tools are not appropriate for some features. In these cases, you can update these records manually to zoom more effectively to these features. For example, if you search for a country that is irregularly shaped with an outlier island and the extent is not consistent with the bounding box of the feature, you can manually adjust these bounding box values to get a better zoom experience for the user.