Developer

@DISTANCE_KILOMETERS

The DISTANCE_KILOMETERS function takes two GPS location parameters and returns the total distance between them in kilometers as a decimal number. The distance returned is always 0 or a positive number. The function may return an invalid decimal value (NaN) if either of the two GPS location parameters to the function are invalid.

This function is intended for use on devices equipped with a GPS unit, though it will return a distance in kilometers for any two valid GPS location values.

Parameters

    @DISTANCE_KILOMETERS (GPS Location1, GPS Location2)
  • GPS Location 1 Required location parameter; contains one of the two GPS location values between which the distance will be calculated by the function.
  • GPS Location 2 Required location parameter; contains one of the two GPS location values between which the distance will be calculated by the function.

Supported Return Types

Decimal Number