文章分类 -  MeiOS / Location定位

getLocation 获取当前的地理位置
摘要:getLocation ^6.8 获取当前的地理位置 #接口调用示例 this.$bridge .getLocation() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) #返回参数 成功时返回 Prop 阅读全文
posted @ 2024-12-17 09:30 AtlasLapetos 阅读(29) 评论(0) 推荐(0)
getLocation 获取今日步数
摘要:getLocation ^8.11 获取今日步数。只支持 ios #接口调用示例 this.$bridge .getTodaySteps() .then((res) => { console.log("getTodaySteps-res", res); }) .catch((err) => { co 阅读全文
posted @ 2024-12-17 09:30 AtlasLapetos 阅读(19) 评论(0) 推荐(0)
requestLocation 当前定位的周边地址
摘要:requestLocation ^6.2.0 当前定位的周边地址 #请求参数 Prop Type Required Default Description param Object Y {} 属性: operation:{ Type: String, Default: N/A, Descriptio 阅读全文
posted @ 2024-12-17 09:30 AtlasLapetos 阅读(32) 评论(0) 推荐(0)
getWeatherInfo 根据城市对应的气象局ID获取城市天气信息
摘要:getWeatherInfo ^5.0.0 根据城市对应的气象局ID获取城市天气信息,比如温度,风向等信息 #请求参数 Prop Type Required Default Description param Object Y {} 属性: cityNo: 请求参数 #接口调用示例 this.$br 阅读全文
posted @ 2024-12-17 09:30 AtlasLapetos 阅读(23) 评论(0) 推荐(0)
getGpsInfo 获取gps信息
摘要:getGpsInfo 获取gps信息 #请求参数 Prop Type Required Default Description param Object Y {} 属性: accuracy:{ Type: Number, Default: 3, Description: (定位的精确度) 1、低精度 阅读全文
posted @ 2024-12-17 09:29 AtlasLapetos 阅读(16) 评论(0) 推荐(0)
getCityInfo 根据百度地图得到的城市名称获取城市的信息
摘要:getCityInfo ^5.0.0 根据百度地图得到的城市名称获取城市的信息,比如该城市对应的气象局对应的ID #请求参数 Prop Type Required Default Description param Object Y {} 属性: cityName: 请求参数 #接口调用示例 thi 阅读全文
posted @ 2024-12-17 09:29 AtlasLapetos 阅读(29) 评论(0) 推荐(0)
geoCode 通过地址返回经纬度信息
摘要:geoCode ^6.2.0 通过地址返回经纬度信息 #请求参数 Prop Type Required Default Description operation String Y - 'geoCode' param Object Y {} 属性: city: address: 请求参数 #接口调用 阅读全文
posted @ 2024-12-17 09:29 AtlasLapetos 阅读(21) 评论(0) 推荐(0)
stopLocationUpdate 取消实时地理位置监听
摘要:stopLocationUpdate ^6.8 取消实时地理位置监听 #接口调用示例 this.$bridge .stopLocationUpdate() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) # 阅读全文
posted @ 2024-12-17 09:29 AtlasLapetos 阅读(22) 评论(0) 推荐(0)
startLocationUpdate 监听实时地理位置
摘要:startLocationUpdate ^6.8 监听实时地理位置 #接口调用示例 this.$bridge .startLocationUpdate() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) # 阅读全文
posted @ 2024-12-17 09:29 AtlasLapetos 阅读(14) 评论(0) 推荐(0)