查找最近的经度和纬度点 [英] Find nearest latitude and longitude points

查看:115
本文介绍了查找最近的经度和纬度点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个关于经纬度的问题......可能是一个愚蠢的问题。

我有各种位置的一组纬度和经度。而且,我有纬度以及我所处位置的经度。

现在,我必须从我拥有的一组经度和纬度中找到离我的位置最近的地方。你是否有任何特殊的计算方法,或者仅仅是减法和检查差异?



请问这个问题吗?



感谢,
J

解决方案

这取决于点的放置方式。 / p>

例如 - 如果大多数点位于停车场,则欧几里德距离应该很好。



在其他情况下 - 测地距离需要计算。 链接可以帮助您获得更多信息。



以下是将十进制格式转换为Degree-分钟 - 秒格式,反之亦然。

干杯


An question on latitude and longitude...Probably a silly one.

I have a set of latitude and longitudes for various locations.And, I have the latitude and longitude of the location in which I am in.

Now,I have to find the nearest places from my locations from the set of latitudes and longitudes I have. Is thee any special way of calculating it or it is just mere subtraction and checking the difference?

Could you please throw some light on this?

Thanks, J

解决方案

It depends on how the points are placed.

For example - if most of the points are in a parking lot, then Euclidean Distance should work well.

In other cases - Geodesic Distance needs to be computed. This link should help you with more information.

Here is the conversion from Decimal format to Degree-Minute-Second format and vice versa.

cheers

这篇关于查找最近的经度和纬度点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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