检查特定半径的纬度? [英] Check a lat long in particular radius?

查看:69
本文介绍了检查特定半径的纬度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发基于位置的应用程序。这里我们有一组lat,长在数据库中。现在我们需要收集特定区域的所有纬度。



例如。

表1

a-- > 10.20321,45.12364

b - > 10.20321,12.12345

c - > 10.20321,45.12378



从上面的细节我需要收集所有特定区域的人(在一个地方大约15公里)。



我尝试过:



我们正在使用谷歌地图获取一个人的经纬度,并将存储在数据库中。



任何人都可以帮忙整理出来吗?

We are developing location based application. here we are having set of lat,long in database. Now we need to collect all lat long in particular area.

Eg.
Table1
a-->10.20321,45.12364
b-->10.20321,12.12345
c-->10.20321,45.12378

From above details i need to collect persons who are all in particular area(around 15 Kms in a place).

What I have tried:

We are using google maps to get latitude and longitude of a person and wil be stored in DB.

Can anyone help to sort out?

推荐答案

计算地球上2个点之间的距离是一个经典问题,它的名字是Great Circle Distance。

大圆距离 - 维基百科,免费的百科全书 [ ^ ]



理查德的链接是值得的看起来也是。
Computing the distance between 2 points on earth is a classical problem, its name is Great Circle Distance.
Great-circle distance - Wikipedia, the free encyclopedia[^]

Richard's links are worth a look too.


这篇关于检查特定半径的纬度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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