【问题标题】:Get Accuracy of myLocationOverlay获取 myLocationOverlay 的准确性
【发布时间】:2012-04-07 02:46:26
【问题描述】:

有没有办法从 MyLocationOverlay 获得修复的准确性?它显然知道它有多准确,因为它绘制了它有多准确的区域的圆。有没有办法得到这个值?

谢谢

【问题讨论】:

    标签: android mylocationoverlay


    【解决方案1】:

    来自我的一个应用程序中的位置侦听器的代码...

          public void onLocationChanged(Location location) {
            currentLatitudeE6 = (int) (location.getLatitude() * 1E6);
            currentLongitudeE6 = (int) (location.getLongitude() * 1E6);
            currentAccuracy = location.getAccuracy();
            hasCurrentPosition = true;
            gpsMessage = "GPS Tracking";
            updateMap();
        }
    

    【讨论】:

      【解决方案2】:

      通过 locationManager.requestLocationUpdates 方法实现 Location Listener,查看以下链接:

      http://hejp.co.uk/android/android-gps-example/

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-03-05
        • 1970-01-01
        • 2021-05-11
        • 2015-04-24
        • 2017-06-25
        • 2018-12-26
        • 1970-01-01
        • 2013-01-05
        相关资源
        最近更新 更多