The Find
task measures the similarity of candidate locations to one or more reference locations.
Based on criteria you specify, Find
can answer questions such as the following:
- Which of your stores are most similar to your top performers with regard to customer profiles?
- Based on characteristics of villages hardest hit by the disease, which other villages are high risk?
To answer questions such as these, you provide the reference locations (the input
parameter), the candidate locations (the search
parameter), and the fields representing the criteria you want to match. For example, the input
value might be a layer containing your top performing stores or the villages hardest hit by the disease. The search
value contains the candidate locations to search. This might be all of your stores or all other villages. Finally, you supply a list of fields to use for measuring similarity. The Find
task will rank all of the candidate locations by how closely they match the reference locations across all of the fields you selected.
Request URL
http://<analysis url>/FindSimilarLocations/submitJob
Limits
The process
parameter and pop-ups are not updated by overwriting the output feature layer if the existing output feature layer already has strings for process
and custom pop-ups.
Request parameters
Parameter | Description |
---|---|
(Required) | A layer containing one or more reference locations that will be evaluated for similarity with the Syntax: As described in detail in the Feature input topic, this parameter can be one of the following:
Examples:
It is not uncommon for the If there is more than one reference location, similarity will be based on averages for the fields you specify in the |
(Required) | The layer containing candidate locations that will be evaluated using the reference locations. Syntax: As described in detail in the Feature input topic, this parameter can be one of the following:
Examples:
|
| A list of fields whose values will be used to determine similarity. They must be numeric fields and the fields must exist on both the Examples:
|
| When the Examples:
|
| The number of ranked candidate locations output to the |
| The fields in the This parameter is available in ArcGIS Enterprise 11.2 or higher. Examples:
|
|
If provided, the task will create a feature service of the results. You define the name of the service. If an Syntax:
In ArcGIS Online or ArcGIS Enterprise 11.1 and later, you can overwrite an existing feature service by providing the Syntax:
or
The |
|
The Context parameter contains the following additional settings that affect task operation:
Syntax:
|
| The response format. The default response format is Values: |
Response
When you submit a request, the service assigns a unique job ID for the transaction. Syntax:
{
"jobId": "<unique job identifier>",
"jobStatus": "<job status>"
}
After the initial request is submitted, you can use the job
value to periodically check the status of the job and messages as described in Check job status. Once the job has successfully completed, you use the job
value to retrieve the results. To track the status, you can make a request in the following form:
http://<analysis url>/FindSimilarLocations/jobs/<jobId>
Access results
When the status of the job request is esri
, you can access the results of the analysis by making a request in the following form:
http://<analysis url>/FindSimilarLocations/jobs/<jobId>/results/<output parameter name>?token=<your token>&f=json
Parameter | Description |
---|---|
| A layer that contains features from the
Request example:
The result has properties for parameter name, data type, and value. The contents of
See Feature Output for more information about how the result layer or collection is accessed. |
| Contains strings that summarize the task result. These strings are used for reporting by the Find Similar Locations tool in Map Viewer Classic in ArcGIS Online . You can create custom reports for your application using these strings. There are four parts in the returned JSON:
Example:
|