我在我的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. GeoDataApi.getAutocompletePredictions()中LatLngBounds的用途是什麼?
- 2. 什麼是印度的手機號碼
- 3. 印模是什麼?
- 4. 什麼是印度tz數據庫的正確時區?
- 5. 以下是什麼打印?
- 6. 什麼是精度?
- 7. 爲什麼精度不能打印?
- 8. 什麼是溫度和什麼是在Java中使用溫度?
- 9. 什麼是「使用兩倍於寬度的長度打印字符串」。意思?
- 10. LatLngBounds vs LatLng
- 11. Google Maps Android LatLngBounds
- 12. 打印機的GraphicsUnit.Display的值是什麼
- 13. 印度來電電話號碼格式是什麼
- 14. 什麼是VSTS中的「水印」
- 15. 什麼是春天的「刻板印象」?
- 16. 什麼是TFS中的「水印」字段?
- 17. 這是什麼打印3 A的?
- 18. 什麼是Python中的「打印」?
- 19. 打印空行是做什麼的?
- 20. UML中的刻板印象是什麼?
- 21. Scala REPL打印的類型是什麼?
- 22. 從android打印的選項是什麼?
- 23. c#中的打印序列是什麼?
- 24. 什麼是水平精度
- 25. 什麼是調度抖動?
- 26. 什麼是調度員
- 27. 什麼是「過度技巧」?
- 28. 什麼是組播調度?
- 29. 谷歌地圖latLngBounds
- 30. Google Map LatLngBounds for polygon.setPaths
#2是不是這些類型的問題的站點。你應該谷歌座標,而不是在這裏問他們。 –
我在這裏得到了答案。無論如何感謝您的幫助:) –