Distance Task Activity


Uses the ArcGIS Geometry Service to calculate the shortest distance between two geometries.

Inheritance Hierarchy:



This activity computes the shortest distance between geometries using the specified units.

In a Workflow:

After performing a query to obtain a set of features, this activity can be used to compute the distances of each feature from another location.


Name Description

In Arguments


The network credentials that are sent to the host and used to authenticate the request.

Custom Parameters

Additional parameters to include in the request.

Disable Client Caching

If true, adds a timestamp parameter (_ts) to the request to prevent it from being loaded from the application's cache.

Distance Unit

The unit for measuring distance between Geometry 1 and Geometry 2. If the unit is not specified, it is derived from the Spatial Reference.


Calculate distance based on a geodesic coordinate system.

Geometry 1

The geometry from where the distance is to be measured.

Geometry 2

The geometry to which the distance is to be measured.

Geometry Service Url

The URL of the ArcGIS Server Geometry service. For example: http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer.

Proxy Url

The URL to proxy the request through.


The token for accessing a secure ArcGIS task.


Display Name


You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Out Arguments


The calculated distance.

Version Information:

Supported from: Geocortex Essentials 3.8.