我在使用Android时遇到了一点小问题。
我有我的GPS位置,清晰的纬度和经度,以及以米为单位的搜索射线(例如100米),好吗?
想象一下我所处的位置是射线所做的圆圈的中心,我会知道如何在安卓上获得: topLeft纬度topLeft经度bottomLeft纬度bottomLeft经度
内接圆的矩形的。
先谢谢你。
发布于 2013-02-02 08:13:22
1)将中心经度转换为卡特森x,y,单位为米:(纬度在球面上,x,y是平面地图,然后你可以继续学习学校数学
2)使用极坐标公式创建4个角点
the first corner has angle 45 degrees, and r = 100m
second corner of the square has angle 45 + 90 degrees
3)将4个笛卡尔米坐标转换回经度,经度
这里有更详细的介绍,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
https://stackoverflow.com/questions/14548411
复制相似问题