获取当前的地理位置、速度。

fail返回的对象 errMsg 可能返回的值

‘getLocation:fail auth deny’,'getLocation:fail:auth denied','getLocation:fail authorize no response' :用户在小程序中未授权 (新老版本、平台返回不同)
‘getLocation:fail system permission denied’:未给微信位置授权
‘getLocation:fail:ERROR_NOCELL&WIFI_LOCATIONSWITCHOFF’:没开启系统定位
‘getLocation:fail:ERROR_NETWORK’:网络异常
‘getLocation:fail:timeout‘:定位超时

相关文章:

  • 2021-09-23
  • 2022-12-23
  • 2021-12-04
  • 2021-11-21
  • 2021-05-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案