Show TOC
# @DISTANCE_MILES

The DISTANCE_MILES function takes two GPS location parameters and returns the total distance between them in miles 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 location values.

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

Parameters

- @DISTANCE_MILES
(GPS Location 1, GPS Location 2)
- 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