C# Class Senparc.Weixin.MP.Helpers.GpsHelper

Show file Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
Distance ( double n1, double e1, double n2, double e2 ) : double

计算两点GPS坐标的距离(单位:米)

GetLatitudeDifference ( double km ) : double

获取维度差

GetLongitudeDifference ( double km ) : double

获取经度差

Method Details

Distance() public static method

计算两点GPS坐标的距离(单位:米)
public static Distance ( double n1, double e1, double n2, double e2 ) : double
n1 double 第一点的纬度坐标
e1 double 第一点的经度坐标
n2 double 第二点的纬度坐标
e2 double 第二点的经度坐标
return double

GetLatitudeDifference() public static method

获取维度差
public static GetLatitudeDifference ( double km ) : double
km double 千米
return double

GetLongitudeDifference() public static method

获取经度差
public static GetLongitudeDifference ( double km ) : double
km double 千米
return double