Android位置,经度(最小值,最大值),纬度(最小值,最大值)

时间:2013-01-27 14:34:47

标签: android coordinates distance

我在使用Android时遇到了一些问题。

我有我的GPS位置,明确的纬度和经度,以及米(例如100米)的一缕搜索,好吗?

想象一下我在光线圈中心的位置,我知道如何在Android上获得: topLeft纬度 topLeft经度 bottomLeft纬度 bottomLeft经度

刻有圆圈的矩形的

提前感谢。

1 个答案:

答案 0 :(得分:0)

1)将中心纬度转换为以米为单位的cartesisan x,y:    (lat lon在球体上,x,y是平面地图,然后你可以继续学校数学

2)使用极坐标公式创建4个角点
    第一个角有45度角,r = 100m
    广场的第二个角有45 + 90度角

3)将4个笛卡尔米坐标转换回lat,lon

这里有点详细 How to find a set of lat/long pairs surrounding a 5 miles radius of a certain location

在这里看到我的答案

PHP: How to create a Geo-Fence(bounding Box) using the Distance from a set of Coords

相关问题