普通算法会选取地球模型为球模型,以赤道半径为基准,因此在计算时纬度越高误差会越大,但胜在计算速度较快
例如:https://zhuanlan.zhihu.com/p/99338702
因此要实现真正的精准计算,必须考虑地球为椭球体,否则在上百公里或上千公里后,依然会有几百米以内的误差。
建议采用椭球体算法,比较著名的算法有Vincenty方案算法
参考:Vincenty solutions of geodesics on the ellipsoid
该算法的Python实现:GitHub - mrJean1/PyGeodesy: Pure Python geodesy tools