The Summarize Nearby task finds features that are within a specified distance of features in the input layer. Distance can be measured as a straight-line distance or by a specified travel mode. Statistics are then calculated for the nearby features.
For example, using Summarize Nearby, you could:
- Calculate the total population within five minutes of driving time of a proposed new store location.
- Calculate the number of freeway access ramps within a one-mile driving distance of a proposed new store location to use as a measure of store accessibility.
Licensing
As described in the Get started with the Spatial Analysis service topic, in order for you to use any analysis task, the administrator of the organization must grant you certain basic privileges. To summarize nearby features using one of the available travel modes, you must also be granted the Network Analysis privilege.
Request URL
http://<analysis url>/SummarizeNearby/submitJob
Limits
There are limits to number of features and distance when near
is set to a travel mode other than "
.
sum
—Maximum 1,000 features.Nearby Layer distance
—Maximum 300 minutes or 482.80 kilometers (300 miles).-
An error will occur if the tool takes more than 60 minutes to run when using travel modes. If this error occurs, rerun the analysis with fewer input features.
Request parameters
Parameter | Description |
---|---|
(Required) | Point, line, or polygon features from which distances will be measured to features in the Syntax: As described in detail in the Feature input topic, this parameter can be one of the following:
Examples:
|
(Required) | Point, line, or polygon features. Features in this layer that are within the specified distance to features in the Syntax: As described in detail in the Feature input topic, this parameter can be one of the following:
Examples:
|
| Defines what type of distance measurement you want to use: straight-line distance, or by measuring travel time or travel distance along a street network using various modes of transportation known as travel modes. The default is Valid values are a string, Travel modes are managed in ArcGIS Online and can be configured by the administrator of your organization to better reflect your organization's workflows. You must specify the JSON object containing the settings for a travel mode supported by your organization. To get a list of supported travel modes, run the When using a travel mode for the For example, the following is a string representing the Walking Time travel mode as returned by the
Convert the value above to a valid JSON object and pass it as the value for the
Example:
|
(Required) | A list of double values that defines the search distance (for Examples:
|
| If Values: If Values: The default is Example:
|
| Specify whether travel times should consider traffic conditions. To use traffic in the analysis, set The service supports two types of traffic: typical and live. Typical traffic references travel speeds that are made up of historical averages for each five-minute interval spanning a week. Live traffic retrieves speeds from a traffic feed that processes phone probe records, sensors, and other data sources to record actual travel speeds and predict speeds for the near future. The Data Coverage page shows the countries Esri currently provides traffic data for. Typical Traffic: To ensure the task uses typical traffic in locations where it is available, choose a time and day of the week, and then convert the day of the week to one of the following dates from 1990:
Set the time and date as Unix time in milliseconds. For example, to solve for 1:03 p.m. on Thursdays, set the time and date to 1:03 p.m., 4 January 1990, and convert to milliseconds (631458180000). Live Traffic: To use live traffic when and where it is available, choose a time and date and convert to Unix time. Esri saves live traffic data for 4 hours and references predictive data extending 4 hours into the future. If the time and date you specify for this parameter is outside the 8-hour time window, or the travel time in the analysis continues past the predictive data window, the task falls back to typical traffic speeds. Syntax: The number of milliseconds since the Unix epoch (January 1, 1970). Examples:
|
| Specify the time zone or zones of the
The GeoLocal illustration: Setting
The UTC illustration: Setting Values: |
| If If The default is Values: |
| A Boolean value that instructs the task to calculate statistics based on shape type of the The default is Values: If |
(Required if | If Values:
|
(Required if | A list of field names and statistical summary types that you want to calculate for all nearby features. Syntax:
Example:
|
| This is a field of the Example:
When a |
| This Boolean parameter is applicable only when a The default is Values: |
| This Boolean parameter is applicable only when a Values: |
|
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 10.9.1 and later, you can overwrite an existing feature service by providing the Syntax:
or
|
|
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
to periodically check the status of the job and messages as described in the topic Check job status. Once the job has successfully completed, you use the job
to retrieve the results. To track the status, you can make a request of the following form:
http://<analysis url>/SummarizeNearby/jobs/<jobId>
Accessing results
When the status of the job request is esri
, you can access the results of the analysis by making a request of the following form.
http://<analysis url>/SummarizeNearby/jobs/<jobId>/results/<output parameter name>?token=<your token>&f=json
Parameter | Description |
---|---|
| 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. |
| If a
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. |