Air_Distance Function

Returns the air distance, in nautical miles, from the user's aircraft to the specified latitude and longitude. The air distance is the shortest distance from the user's aircraft to the specified latitude and longitude.

Note: As distances increase, this function becomes less accurate.

Syntax

Air_Distance (lat, lon)

where

latitude Specifies the latitude.
longitude Specifies the longitude.

Example

DECLARE AD2_Meigs

AD2_Meigs = AIR_DISTANCE(41:51:13.3942, 087:36:27.2470)