I have been working to create several address locators to be published at a GeocodeServer on my 10.6 ArcGIS Server, and I'm very confused how I can tailor the "Category" option in the suggest and findAddressCandidates endpoints. Lets say I create one single locator from a list of assets, some of which are of type "type1" and some of which are of type "type2".
If I want to enable my developers to use this option in their applications, so when they use the suggest or findAddressCandidates endpoints, suggestions and results can be further refined by using the Category parameter in the request, how would I do that?
I can see from the service definition (https://giserver/arcgis/rest/services/Locators/MyLocator/GeocodeServer?f=json) the baked-in categories, but I didn't specify these, and furthermore, every category ends up being City for my results. Is there any way to tailor these when building the address locator in ArcCatalog? (Or ArcGIS Pro)
categories": [
{
"name": "Populated Place",
"localizedNames": {},
"categories": [
{
"name": "Neighborhood",
"localizedNames": {}
},
{
"name": "City",
"localizedNames": {}
},
{
"name": "Subregion",
"localizedNames": {}
},
{
"name": "Region",
"localizedNames": {}
}
]
}
],
Can someone point me to ANY decent documentation on this, because I haven't been able to find any! I don't know if I do this as I'm creating the address locator or do it when I publish the address locator as a service, or if it has something to do with composite locators (each locator in the composite can have it's own category).
Thanks
Jay:
What you are looking to do is not available for locators that are created using Desktop 10.6 or ArcGIS Pro 2.2.
However, with ArcGIS Pro 2.3 you do have the ability to create locators using the POI role that will allow you to use your own categories that have been defined in the reference data. When the locator is published as a service they will be available for use in REST. You will need to use the new Create Locator tool to create the locator using the POI role and map the Category field to a field in your reference data that contains the custom category. If you have subcategories, you can map the Subcategory field as well when building the locator. For best results with the locator service and the new locator created with the Create Locator tool, publish the locator to Enterprise Server 10.6.1 or later. The locators created with the Create Locator tool in ArcGIS Pro cannot be added to ArcMap.
If you publish the locator to ArcGIS Server or Portal (federated) you can access the service in ArcMap through an ArcGIS Server connection in ArcMap/ArcCatalog.
Below are some resources to get you started.
Share to federated portal:
Share to ArcGIS Server via Python (Pro): Requires a publisher or administrator ArcGIS Server Connection file that is created in ArcMap or ArcGIS Pro. http://pro.arcgis.com/en/pro-app/arcpy/functions/creategeocodesddraft.htm
http://pro.arcgis.com/en/pro-app/help/projects/connect-to-a-gis-server.htm#GUID-E3F3174D-3895-4BFC-9443-8676D2D4964B
http://pro.arcgis.com/en/pro-app/help/data/geocoding/introduction-to-locator-roles.htm
Create a locator—ArcGIS Pro | ArcGIS Desktop
Create Locator—Help | ArcGIS Desktop
Tips for improving geocoding quality—ArcGIS Pro | ArcGIS Desktop