定位
openLocation: function () {wx.openLocation({longitude: 113.324520,latitude: 23.099994,name: 'T.I.T 创意园',address: '广州市海珠区新港中路397号'})}
选择位置
// app.json 中配置接口权限{"pages": ["pages/index/index"],"permission": {"scope.userLocation": {"desc": "你的位置信息将用于小程序位置接口的效果展示" // 高速公路行驶持续后台定位}}}//选择位置wx.chooseLocation({success(res){const latitude = res.latitudeconst longitude = res.longitudeconst speed = res.speedconst accuracy = res.accuracy},fail(res){}})