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

1***@qq.com
- 发布:2024-04-24 13:59
- 更新:2024-04-24 16:58
- 阅读:192
1***@qq.com (作者)
一样的代码,在平板上运行,经纬度有200多米的偏移,在手机上运行只有15米的偏移,后面我选择使用系统定位,经纬度偏移在室外只有5米,使用高德偏移有点大
2024-04-25 13:55
HRK_01
回复 1***@qq.com: 应该是高德那边定位的问题,高德定位有时候会因为一些环境因素影响定位
2024-04-26 11:06