@DISTANCE

The DISTANCE function takes four decimal parameters assumed to be latitude and longitude values for two map positions, and returns the resulting distance in meters as a decimal value.

When working with GPS location values, this function should not be used. See the System functions GPS_LOCATION, LATITUDE, LONGITUDE, DISTANCE_MILES, DISTANCE_KILOMETERS, LOCATION, and IS_VALID_LOCATION.

Parameters

@DISTANCE (x1, y1, x2, y2)
x1
Required decimal number parameter; contains the x coordinate of the first position.
y1
Required decimal number parameter; contains the y coordinate of the first position.
x2
Required decimal number parameter; contains the x coordinate of the second position.
y2
Required decimal number parameter; contains the y coordinate of the second position.

Supported Return Types

Decimal Number