UnitConverters.CoordinatesToMiles(Double, Double, Double, Double) 方法

定义

计算两个坐标之间的距离(以英里为单位)。

public:
 static double CoordinatesToMiles(double lat1, double lon1, double lat2, double lon2);
public static double CoordinatesToMiles (double lat1, double lon1, double lat2, double lon2);
static member CoordinatesToMiles : double * double * double * double -> double
Public Shared Function CoordinatesToMiles (lat1 As Double, lon1 As Double, lat2 As Double, lon2 As Double) As Double

参数

lat1
Double

第一个纬度。

lon1
Double

第一个经度。

lat2
Double

第二个纬度。

lon2
Double

秒经度。

返回

以英里为单位的距离。

适用于