💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 选择位置 ChooseLocation ### 平台 - 全平台 ### 参数 名称 | 类型 | 是否必填|说明 :-----------: | :-----------: | :-----------: | ----------- latitude | String | 否| 目标地纬度,仅微信小程序2.9.0+支持 longitude | String | 否|目标地经度,仅微信小程序2.9.0+支持 keyword | Array | 否| 搜索关键字,仅App平台支持 ### 示例 ``` this.$Tool.ChooseLocation(1111,2222).then(res=>{ console.log('位置名称:' + res.name); console.log('详细地址:' + res.address); console.log('纬度,浮点数,范围为-90~90,负数表示南纬,使用 gcj02 国测局坐标系:' + res.latitude); console.log('经度,浮点数,范围为-90~90,负数表示南纬,使用 gcj02 国测局坐标系:' + res.longitude); }) ``` ## 获取位置 GetLocation ### 平台 - 全平台 ### 参数 名称 | 类型 | 是否必填|说明 :-----------: | :-----------: | :-----------: | ----------- type | String | 否| 默认为 wgs84 返回 gps 坐标,gcj02 返回国测局坐标,可用于`OpenLocation`的坐标,app平台高德SDK仅支持返回gcj02 ### 示例 ``` this.$Tool.GetLocation("wgs84").then(res=>{ console.log('纬度,浮点数,范围为-90~90,负数表示南纬,使用 gcj02 国测局坐标系:' + res.latitude); console.log('经度,浮点数,范围为-90~90,负数表示南纬,使用 gcj02 国测局坐标系:' + res.longitude); }) ``` ## 查看位置 OpenLocation ### 平台 - 全平台 ### 参数 名称 | 类型 | 是否必填|说明 :-----------: | :-----------: | :-----------: | ----------- latitude | String | 否| 目标地纬度 longitude | String | 否|目标地经度 scale | Int | 否|缩放比例,范围5~18,默认为18 ### 示例 ``` this.$Tool.OpenLocation(1111,2222,16) ```