1***@qq.com
1***@qq.com
  • 发布:2024-04-24 13:59
  • 更新:2024-04-24 16:58
  • 阅读:192

真机上运行,uni.getLocation定位,位置偏移

分类:uni-app

uni.getLocation({
type: 'gcj02',
geocode: true,
accuracy: 'best',
isHighAccuracy: true,
success: function(res) {
var latitude = res.latitude;
var longitude = res.longitude;

2024-04-24 13:59 负责人:无 分享
已邀请:
HRK_01

HRK_01

是在特定某个范围有影响还是某个平台才有偏移?

  • 1***@qq.com (作者)

    一样的代码,在平板上运行,经纬度有200多米的偏移,在手机上运行只有15米的偏移,后面我选择使用系统定位,经纬度偏移在室外只有5米,使用高德偏移有点大

    2024-04-25 13:55

  • HRK_01

    回复 1***@qq.com: 应该是高德那边定位的问题,高德定位有时候会因为一些环境因素影响定位

    2024-04-26 11:06

要回复问题请先登录注册