double fDistanceLatLon(lat1,lon1,lat2,lon2) returns distance in ArcMinutes between two points.

Namespace: Spherical.Htm
Assembly: SphericalHtm (in SphericalHtm.dll) Version: 1.0.0.0

Syntax

C#
public static SqlDouble fDistanceLatLon(
	double lat1,
	double lon1,
	double lat2,
	double lon2
)
Visual C++
public:
static SqlDouble fDistanceLatLon(
	double lat1, 
	double lon1, 
	double lat2, 
	double lon2
)
F#
static member fDistanceLatLon : 
        lat1:float * 
        lon1:float * 
        lat2:float * 
        lon2:float -> SqlDouble 

Parameters

lat1
Type: System..::..Double
double, latitude coordinate (degrees)
lon1
Type: System..::..Double
double, longitude coordinate (degrees)
lat2
Type: System..::..Double
double, latitude coordinate (degrees)
lon2
Type: System..::..Double
double, longitude coordinate (degrees)

Return Value

double distance in arc minutes.

Examples

CopyC#
create function fDistanceLatLon(@lat1 float, @lon1 float, @lat2 float, @lon2 float) 
        returns float
             as external name HTM.Sql.fDistanceLatLon
select dbo.fDistanceLatLon(0,0,30,30)

See Also