【发布时间】:2016-03-27 10:35:06
【问题描述】:
我想为 50 英里半径 wrt 创建 LatLngBounds。当前位置。与 google 地方 api 一起使用。
现在,我在网上做一个例子
//Southwest corner to Northeast corner.
LatLngBounds bounds = new LatLngBounds(
new LatLng(39.906374, -105.122337),
new LatLng(39.949552, -105.068779)
);
你能提供指点吗?
更新:
我用这个作为答案:
How to convert a LatLng and a radius to a LatLngBounds in Android Google Maps API v2?
【问题讨论】:
-
查看stackoverflow.com/questions/1253499/…。这将向您展示如何以 lat lng 计算 50 公里并使用它。
-
这可能对movable-type.co.uk/scripts/latlong.html 有所帮助,请查看“目标点距起点的距离和方位角”
标签: android