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

定义

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

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

参数

lat1
Double

第一纬度。

lon1
Double

第一个经度。

lat2
Double

第二纬度。

lon2
Double

秒经度。

返回

以公里为单位的距离。

适用于