50Mile半径wrtのLatLngBoundsを作成したいとします。現在位置。 Googleの場所APIで使用する。あなたはポインタを提供することができますLatLngBoundsを50Mile半径の現在位置で作成する
は今のところ、私はオンライン
//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?
http://stackoverflow.com/questions/1253499/simple-calculations-for-working-with-lat-lon-km-distanceを参照してください。それは緯度経度で50 Kmsを計算して使用する方法を示します。 – Abdullah
これはhttp://www.movable-type.co.uk/scripts/latlong.htmlを参考にしてください。「目的地からの距離と出発点からの方位」 –