Fix_To_Fix_Distance Function

Returns the distance between the two points, in nautical miles.

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

Syntax

Fix_To_Fix_Distance (lat1, lon1, lat2, lon2)

where

lat1 Specifies the latitude of the first point.
lon1 Specifies the longitude of the first point.
lat2 Specifies the latitude of the second point.
lon2 Specifies the longitude of the second point.

Example

DECLARE D_ORD_CMI

'Returns distance from ORD VOR to CMI VOR.

D_ORD_LAX = FIX_TO_FIX_DISTANCE(41:59:15.60, 087:54:17.60, 40:02:06.0000, 088:16:36.0000)