我在我的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是不是这些类型的问题的站点。你应该谷歌坐标,而不是在这里问他们。 –
我在这里得到了答案。无论如何感谢您的帮助:) –