球面距离怎么求

球面距离怎么求

球面距离计算公式:d(x1,y1,x2,y2)=r*arccos(sin(x1)*sin(x2)+cos(x1)*cos(x2)*cos(y1-y2)),其中,x1,y1是纬度\经度的弧度单位,......