【发布时间】:2018-03-17 20:18:46
【问题描述】:
我正在尝试实现获取当前位置。这两个代码我都用过。
mFusedLocationClient =
LocationServices.getFusedLocationProviderClient(this);
mFusedLocationClient.getLastLocation()...
定位精度为2000米
和
ReactiveLocationProvider locationProvider = new ReactiveLocationProvider(context);
locationProvider.getLastKnownLocation()...
定位精度为 100 到 200 米。
我觉得反应式定位是最准确的。有没有最好的方法来获得准确的当前位置。谁能解释一下为什么谷歌代码没有显示确切的位置?
【问题讨论】:
-
嗨 @Umakant 使用 GogleApiClient ,这将提供准确的位置
标签: android geolocation location rx-android android-gps