Aggregate points task allows you to aggregate or count the total number of points that are distributed within
specified areas or boundaries (polygons). You can also summarize Sum, Mean, Min, Max and Standard deviation
calculations for attributes of the point layer to understand the general characteristics of aggregated points.

point_layer :Required layer (see Feature Input in documentation)

Point layer to be aggregated

polygon_layer :Required layer (see Feature Input in documentation)

Polygon layer to which the points should be aggregated.

keep_boundaries_with_no_points :Optional bool

Specify whether the polygons without any points should be returned in the output.

summary_fields :Optional list of strings

A list of field names and summary type. Example [fieldName1 summaryType1,fieldName2 summaryType2].

group_by_field :Optional string

A field name from PointLayer based on which the points will be grouped.

minority_majority :Optional bool

This boolean parameter is applicable only when a groupByField is specified. If true, the minority
(least dominant) or the majority (most dominant) attribute values within each group, within each boundary will
be calculated.

percent_points :Optional bool

This boolean parameter is applicable only when a groupByField is specified. If set to true, the percentage count
of points for each unique groupByField value is calculated.

output_name :Optional string

Additional properties such as output feature service name.

context :Optional string

Additional settings such as processing extent and output spatial reference.

gis :

Optional, the GIS on which this tool runs. If not specified, the active GIS is used.

The calculate_density function creates a density map from point or line features by spreading known quantities of
some phenomenon (represented as attributes of the points or lines) across the map. The result is a layer of areas
classified from least dense to most dense.

input_layer :Required layer (see Feature Input in documentation)

The point or line features from which to calculate density.

field :Optional string

A numeric field name specifying the number of incidents at each location. If not specified, each location will
be assumed to represent a single count.

cell_size :Optional float

This value is used to create a mesh of points where density values are calculated. The default is approximately
1/1000th of the smaller of the width and height of the analysis extent as defined in the context parameter.

cell_size_units :Optional string

The units of the cellSize value

radius :Optional float

A distance specifying how far to search to find point or line features when calculating density values.

The routes can be determined by measuring travel distance or travel time along street network using different
travel modes or by measuring straight line distance.

origins_layer_route_id_field :Optional string

The field in the origins layer containing the IDs that are used to match an origin with a destination.

destinations_layer_route_id_field :Optional string

The field in the destinations layer containing the IDs that are used to match an origin with a destination.

time_of_day :Optional datetime.datetime

When measurementType is DrivingTime, this value specifies the time of day to be used for driving time
calculations based on traffic. WalkingTime and TruckingTime measurementType do not support calculations
based on traffic.

time_zone_for_time_of_day :Optional string

Determines if the value specified for timeOfDay is specified in UTC or in a time zone that is local to the
location of the origins.

output_name :Optional string

Additional properties such as output feature service name.

context :Optional string

Additional settings such as processing extent and output spatial reference.

gis :

Optional, the GIS on which this tool runs. If not specified, the active GIS is used.

Indicates if the input route data item should be deleted. The default value is False which does not delete the route data item.

tags: Optional string

Tags used to describe and identify the route layer items. Individual tags are separated using a comma. The route name is always
added as a tag even when a value for this argument is not specified.

summary: Optional string

The summary displayed as part of the item information for the route layer item. If a value for this argument is not specified,
a default summary text “Route and directions for <Route Name>” is used.

route_name_prefix :Optional string

A qualifier added to the title of every route layer item. This can be used to designate all routes that are shared for a
specific purpose to have the same prefix in the title. The name of the route is always appended after this qualifier.
If a value for the route_name_prefix is not specified, the title for the route layer item is created using only the route name.

folder_name: Optional string

The folder within your personal online workspace (My Content in your ArcGIS Online or Portal for ArcGIS organization) where the
route layer items will be created. If a folder with the specified name does not exist, a new folder will be created.
If a folder with the specified name exists, the items will be created in the existing folder.
If a value for folder_name is not specified, the route layer items are created in the root folder of your online workspace.

gis :

Optional, the GIS on which this tool runs. If not specified, the active GIS is used.

The Derive New Locations task derives new features from the input layers that meet a query you specify. A query is
made up of one or more expressions. There are two types of expressions: attribute and spatial. An example of an
attribute expression is that a parcel must be vacant, which is an attribute of the Parcels layer
(where STATUS = ‘VACANT’). An example of a spatial expression is that the parcel must also be within a certain
distance of a river (Parcels within a distance of 0.75 Miles from Rivers).The Derive New Locations task is very
similar to the Find Existing Locations task, the main difference is that the result of Derive New Locations can
contain partial features.In both tasks, the attribute expression where and the spatial relationships within and
contains return the same result. This is because these relationships return entire features.When intersects or
withinDistance is used, Derive New Locations creates new features in the result. For example, when intersecting a
parcel feature and a flood zone area that partially overlap each other, Find Existing Locations will return the
entire parcel whereas Derive New Locations will return just the portion of the parcel that is within the flood zone.

The enrich_layer function enriches your data by getting facts about the people, places, and businesses that surround
your data locations. For example: What kind of people live here? What do people like to do in this area? What are
their habits and lifestyles? What kind of businesses are there in this area?The result will be a new layer of input
features that includes all demographic and geographic information from given data collections.

input_layer :Required layer (see Feature Input in documentation)

Feature layer to enrich with new data

data_collections :Optional list of strings

Data collections you wish to add to your features.

analysis_variables :Optional list of strings

A subset of specific variables instead of dataCollections.

country :Optional string

The two character country code that specifies the country of the input features. Eg. US (United States),
FR (France), GB (United Kingdom) etc.

buffer_type :Optional string

Area to be created around the point or line features for enrichment. Default is 1 Mile straight-line buffer
radius.

distance :Optional float

A double value that defines the straight-line distance or time (when drivingTime is used).

units :Optional string

The unit (eg. Miles, Minutes) to be used with the distance value(s) specified in the distance parameter to
calculate the area.

output_name :Optional string

Additional properties such as output feature service name.

context :Optional string

Additional settings such as processing extent and output spatial reference.

gis :

Optional, the GIS on which this tool runs. If not specified, the active GIS is used.

The Find Existing Locations task selects features in the input layer that meet a query you specify.
A query is made up of one or more expressions. There are two types of expressions: attribute and spatial.
An example of an attribute expression is that a parcel must be vacant, which is an attribute of the Parcels layer
(where STATUS = ‘VACANT’). An example of a spatial expression is that the parcel must also be within a certain
distance of a river (Parcels within a distance of 0.75 Miles from Rivers).

Measures the straight-line distance, driving distance, or driving time from features in the analysis layer to
features in the near layer, and copies the nearest features in the near layer to a new layer. Returns a layer
containing the nearest features and a line layer that links the start locations to their nearest locations.

analysis_layer :Required layer (see Feature Input in documentation)

For each feature in this layer, the task finds the nearest features from the nearLayer.

near_layer :Required layer (see Feature Input in documentation)

The features from which the nearest locations are found.

measurement_type :Required string

The nearest locations can be determined by measuring straight-line distance, driving distance, or driving time

max_count :Optional int

The maximum number of near locations to find for each feature in analysisLayer.

search_cutoff :Optional float

Limits the search range to this value

search_cutoff_units :Optional string

The units for the value specified as searchCutoff

time_of_day :Optional datetime.datetime

When measurementType is DrivingTime, this value specifies the time of day to be used for driving time
calculations based on traffic.

time_zone_for_time_of_day : Optional string

output_name :Optional string

Additional properties such as output feature service name

context :Optional string

Additional settings such as processing extent and output spatial reference

gis :

Optional, the GIS on which this tool runs. If not specified, the active GIS is used.

The Interpolate Points function allows you to predict values at new locations based on measurements from a
collection of points. The function takes point data with values at each point and returns areas classified by
predicted values.

input_layer :Required layer (see Feature Input in documentation)

The point layer whose features will be interpolated.

field :Required string

Name of the numeric field containing the values you wish to interpolate.

If True, a polygon layer of standard errors for the interpolation predictions will be returned in the
predictionError output parameter.

classification_type :Optional string

Determines how predicted values will be classified into areas.

num_classes :Optional int

This value is used to divide the range of interpolated values into distinct classes. The range of values in each
class is determined by the classificationType parameter. Each class defines the boundaries of the result
polygons.

class_breaks :Optional list of floats

If classificationType is Manual, supply desired class break values separated by spaces. These values define the
upper limit of each class, so the number of classes will equal the number of entered values. Areas will not be
created for any locations with predicted values above the largest entered break value. You must enter at least
two values and no more than 32.

You provide a set of stops and the number of vehicles available to visit the stops, and Plan Routes determines how
to efficiently assign the stops to the vehicles and route the vehicles to the stops.

Use this tool to plan work for a mobile team of inspectors, appraisers, in-home support service providers, and
others; deliver or pick up items from remote locations; or offer transportation services to people.

stops_layer : Required layer (see Feature Input in documentation)

route_count : Required int

max_stops_per_route : Required int

route_start_time : Required datetime.datetime

start_layer : Required layer (see Feature Input in documentation)

start_layer_route_id_field : Optional string

return_to_start : Optional bool

end_layer : Optional layer (see Feature Input in documentation)

end_layer_route_id_field : Optional string

travel_mode : Optional string

stop_service_time : Optional float

max_route_time : Optional float

output_name : Optional string

context : Optional string

gis :

Optional, the GIS on which this tool runs. If not specified, the active GIS is used.

The SummarizeNearby task finds features that are within a specified distance of features in the input layer.
Distance can be measured as a straight-line distance, a drive-time distance (for example, within 10 minutes), or a
drive distance (within 5 kilometers). Statistics are then calculated for the nearby features. For example: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.

sum_nearby_layer :Required layer (see Feature Input in documentation)

Point, line, or polygon features from which distances will be measured to features in the summarizeLayer.

summary_layer :Required layer (see Feature Input in documentation)

Point, line, or polygon features. Features in this layer that are within the specified distance to features in
the sumNearbyLayer will be summarized.

near_type :Optional string

Defines what kind of distance measurement you want to use to create areas around the nearbyLayer features.

distances :Required list of floats

An array of double values that defines the search distance for creating areas mentioned above

For timeOfDay, set the time and day according to the number of milliseconds elapsed since the Unix epoc
(January 1, 1970 UTC). When specified and if relevant for the nearType parameter, the traffic conditions during
the time of the day will be considered.

time_zone_for_time_of_day :Optional string

Determines if the value specified for timeOfDay is specified in UTC or in a time zone that is local to the
location of the origins.

return_boundaries :Optional bool

If true, will return a result layer of areas that contain the requested summary information. The resulting
areas are defined by the specified nearType. For example, if using a StraightLine of 5 miles, your result will
contain areas with a 5 mile radius around the input features and specified summary information.If false, the
resulting layer will return the same features as the input analysis layer with requested summary information.

sum_shape :Optional bool

A boolean value that instructs the task to calculate count of points, length of lines or areas of polygons of
the summaryLayer within each polygon in sumWithinLayer.

shape_units :Optional string

Specify units to summarize the length or areas when sumShape is set to true. Units is not required to summarize
points.

summary_fields :Optional list of strings

A list of field names and statistical summary type that you wish to calculate for all features in the
summaryLayer that are within each polygon in the sumWithinLayer . Eg: [“fieldname1 summary”,
“fieldname2 summary”]

group_by_field :Optional string

Specify a field from the summaryLayer features to calculate statistics separately for each unique value of the
field.

minority_majority :Optional bool

This boolean parameter is applicable only when a groupByField is specified. If true, the minority
(least dominant) or the majority (most dominant) attribute values within each group, within each boundary will
be calculated.

percent_shape :Optional bool

This boolean parameter is applicable only when a groupByField is specified. If set to true, the percentage of
shape (eg. length for lines) for each unique groupByField value is calculated.

output_name :Optional string

Additional properties such as output feature service name.

context :Optional string

Additional settings such as processing extent and output spatial reference.

gis :

Optional, the GIS on which this tool runs. If not specified, the active GIS is used.

The SummarizeWithin task helps you to summarize and find statistics on the point, line, or polygon features (or
portions of these features) that are within the boundaries of polygons in another layer. For example:Given a layer
of watershed boundaries and a layer of land-use boundaries by land-use type, calculate total acreage of land-use
type for each watershed.Given a layer of parcels in a county and a layer of city boundaries, summarize the average
value of vacant parcels within each city boundary.Given a layer of counties and a layer of roads, summarize the
total mileage of roads by road type within each county.

sum_within_layer :Required layer (see Feature Input in documentation)

A polygon feature layer or featurecollection. Features, or portions of features, in the summaryLayer (below)
that fall within the boundaries of these polygons will be summarized.

summary_layer :Required layer (see Feature Input in documentation)

Point, line, or polygon features that will be summarized for each polygon in the sumWithinLayer.

sum_shape :Optional bool

A boolean value that instructs the task to calculate count of points, length of lines or areas of polygons of
the summaryLayer within each polygon in sumWithinLayer.

shape_units :Optional string

Specify units to summarize the length or areas when sumShape is set to true. Units is not required to summarize
points.

summary_fields :Optional list of strings

A list of field names and statistical summary type that you wish to calculate for all features in the
summaryLayer that are within each polygon in the sumWithinLayer. Eg:[“fieldname1 summary”, “fieldname2 summary”]

group_by_field :Optional string

Specify a field from the summaryLayer features to calculate statistics separately for each unique attribute
value.

minority_majority :Optional bool

This boolean parameter is applicable only when a groupByField is specified. If true, the minority
(least dominant) or the majority (most dominant) attribute values within each group, within each boundary will
be calculated.

percent_shape :Optional bool

This boolean parameter is applicable only when a groupByField is specified. If set to true, the percentage of
shape (eg. length for lines) for each unique groupByField value is calculated.

output_name :Optional string

Additional properties such as output feature service name.

context :Optional string

Additional settings such as processing extent and output spatial reference.

gis :

Optional, the GIS on which this tool runs. If not specified, the active GIS is used.