检查特定半径的纬度? [英] Check a lat long in particular radius?
问题描述
我们正在开发基于位置的应用程序。这里我们有一组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屋!