Calculation results

The ReturnValue property returned by Calculate contains the calculation results for the requested operation. The type of the value depends on the operation.

The following table describes the calculation results returned for each operation.

Table: ReturnValue per operation

Operation

ReturnValue description

ReturnValue type

FindDistance

Contains the distance between the source location and the target location in meters.

number

FindBearingTo

Contains the bearing to the target location from the source location. The bearing is expressed in degrees counting clockwise relative to true north.

number

MoveCoordinates

Contains the coordinates of the new location. The properties of this object are described in the following table.

The coordinates are referenced according to the WGS 84 datum. The representation is in decimal degrees.

object

Table: ReturnValue object properties for MoveCoordinates

Property

Description

Type

Longitude

Specifies the longitude coordinate of the new location.

number

Latitude

Specifies the latitude coordinate of the new location.

number

Altitude

Specifies the altitude coordinate of the new location.

number