如何找到从两个位置的纬度和经度距离是多少? [英] How to find distance from the latitude and longitude of two locations?

查看:201
本文介绍了如何找到从两个位置的纬度和经度距离是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组纬度和经度位置的。

I have a set of latitudes and longitudes of locations.

  • 如何找到的设置为另一个距离从一个位置?
  • 有没有公式?
  • How to find distance from one location in the set to another?
  • Is there a formula ?

推荐答案

在半正矢公式假设一个球形的地球。然而,earh的形状更复杂。一个扁球体模型会给出更好的结果。

The Haversine formula assumes a spherical earth. However, the shape of the earh is more complex. An oblate spheroid model will give better results.

如果这样的精度是必要的,你最好使用 Vincenty反式。 请参阅<一href="http://en.wikipedia.org/wiki/Vincenty%27s_formulae">http://en.wikipedia.org/wiki/Vincenty's_formulae了解详细信息。使用它,你可以得到0.5mm的精度球体模型。

If such accuracy is needed, you should better use Vincenty inverse formula. See http://en.wikipedia.org/wiki/Vincenty's_formulae for details. Using it, you can get a 0.5mm accuracy for the spheroid model.

没有完美的公式,因为地球的真正形状太复杂,无法用一个公式pssed EX $ P $。此外,地球的变化,由于气候事件的形状(见<一href="http://www.nasa.gov/centers/goddard/earthandsun/earthshape.html">http://www.nasa.gov/centers/goddard/earthandsun/earthshape.html),并且也由于地球的旋转随时间改变。

There is no perfect formula, since the real shape of the earth is too complex to be expressed by a formula. Moreover, the shape of earth changes due to climate events (see http://www.nasa.gov/centers/goddard/earthandsun/earthshape.html), and also changes over time due to the rotation of the earth.

您还应该注意的是,上述方法没有考虑高度考虑,并假定海平面的扁球体。

You should also note that the method above does not take altitudes into account, and assumes a sea-level oblate spheroid.

修改10 07月2010:我发现有极少数情况下为其Vincenty反式不收敛于声明的准确性。更好的方法是使用GeographicLib(见<一href="http://sourceforge.net/projects/geographiclib/">http://sourceforge.net/projects/geographiclib/)这也是更准确。

Edit 10-Jul-2010: I found out that there are rare situations for which Vincenty inverse formula does not converge to the declared accuracy. A better idea is to use GeographicLib (see http://sourceforge.net/projects/geographiclib/) which is also more accurate.

这篇关于如何找到从两个位置的纬度和经度距离是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆