Description:
The Calculate
method performs mathematical calculations
based on a source location and a target location.
This is a synchronous method.
Syntax:
result = so.ILocation.Calculate(criteria);
Arguments:
criteria
:
This is an object that specifies the mathematical operation to perform and the input values to use in the operation. For more information about the object properties and how to define them, see section Calculation criteria.
Return value:
The Calculate
method returns an object that contains
the calculation results, an error code, and an error message.
Property |
Description |
Value |
---|---|---|
|
This contains the results for the requested mathematical operation. The type of the value depends on the operation. |
See Calculation results. |
|
This is a number that specifies a predefined error code. |
|
|
This is a text string that describes the error. |
Remarks:
The WGS 84 datum is used to reference coordinates.
Example code:
For the complete source of a sample widget that demonstrates how to use this Service API, see the full example.