我在我的android應用程序中使用了自動完成位置小部件。我想把界限設置到只有印度。但我不知道印度的LatLngBounds。任何人都有關於座標的想法嗎?什麼是印度的LatLngBounds?
0
A
回答
8
你可以使用這個..
private static final LatLngBounds BOUNDS_INDIA = new LatLngBounds(new LatLng(23.63936, 68.14712), new LatLng(28.20453, 97.34466));
+0
它像一個魅力。謝謝! –
+0
在哪裏添加此BOUND_INDIA –
1
4
如果要覆蓋整個印度(雖然它也將覆蓋中國,巴基斯坦和孟加拉國的一些地區),使用範圍如下: -
public static final LatLngBounds BOUNDS_INDIA = new LatLngBounds(new LatLng(7.798000, 68.14712), new LatLng(37.090000, 97.34466));
按照谷歌文檔: -
public LatLngBounds (LatLng southwest, LatLng northeast)
Creates a new bounds based on a southwest and a northeast corner.
The bounds conceptually includes all points where:
1. the latitude is in the range [northeast.latitude, southwest.latitude];
2. the longitude is in the range [southwest.longtitude, northeast.longitude] if southwest.longtitude ≤ northeast.longitude;
要找到任何地方 使用的緯度和經度: - http://www.findlatitudeandlongitude.com/
相關問題
- 1. 什麼是印度的手機號碼
- 2. 以下是什麼打印?
- 3. 什麼是精度?
- 4. 什麼是高度?
- 5. 爲什麼精度不能打印?
- 6. 什麼是溫度和什麼是在Java中使用溫度?
- 7. Google Maps Android LatLngBounds
- 8. 印度來電電話號碼格式是什麼
- 9. Scala REPL打印的類型是什麼?
- 10. UML中的刻板印象是什麼?
- 11. c#中的打印序列是什麼?
- 12. 從android打印的選項是什麼?
- 13. 打印空行是做什麼的?
- 14. 什麼是TFS中的「水印」字段?
- 15. 這是什麼打印3 A的?
- 16. 什麼是「過度技巧」?
- 17. 什麼是調度員
- 18. 什麼是調度抖動?
- 19. 什麼是組播調度?
- 20. 如何使用LatLngBounds?
- 21. 寬度設備寬度什麼是什麼?困惑
- 22. 這是什麼緯度/經度格式?
- 23. 這是什麼打印3 ln 8 4?
- 24. 什麼是「document.writeln(Object.prototype);」在JavaScript打印?
- 25. 這是爲什麼不打印
- 26. 無法設置經度從-180到0的LatLngBounds
- 27. 將相機位置移動到適合標記高度的LatLngBounds
- 28. 這個JS語法是什麼意思,什麼是'長度'?
- 29. 什麼是PHP的C#ReadBytes(流長度)?
- 30. 什麼是BST以上的深度
#2是不是這些類型的問題的站點。你應該谷歌座標,而不是在這裏問他們。 –
我在這裏得到了答案。無論如何感謝您的幫助:) –