launchMapApp ^6.8
打开用户手机地图软件,传入标记地点。(打开地图软件后,用户可以使用地图软件的功能,比如导航等)
#请求参数
| Prop |
Type |
Default |
Comment |
to |
Object |
N/A |
|
from |
Object |
N/A |
|
| Prop |
Type |
Default |
Comment |
coordinateType |
String |
N/A |
Number,^7.2 非必填,默认为1,1表示使用百度地图,2表示使用高德地图 |
latitude |
String |
N/A |
经度 |
latitude |
String |
N/A |
纬度 |
latitude |
String |
N/A |
终点的名称 |
| Prop |
Type |
Default |
Comment |
latitude |
String |
N/A |
纬度 |
latitude |
String |
N/A |
经度 |
coordinateType |
String |
N/A |
Number,^7.2 非必填,默认为1,1表示使用百度地图,2表示使用高德地图 |
latitude |
String |
N/A |
起点的名称 |
#接口调用示例
const params = {
from: {
coordinateType: 2, //Number,^7.2 非必填,默认为1,1表示使用百度地图,2表示使用高德地图
latitude: '123', //纬度
longitude: '89', //经度
name: 'anony1', //起点的名称
},
to: {
coordinateType: 2, //Number,^7.2 非必填,默认为1,1表示使用百度地图,2表示使用高德地图
latitude: '34', //纬度
longitude: '59', //经度
name: 'annoy2', //终点的名称
},
}
this.$bridge
.launchMapApp(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
#返回参数
| Prop |
Type |
Default |
Description |
status |
Number |
N/A |
0打开成功,-1 没有权限 |
| Prop |
Type |
Default |
Description |
errorCode |
String |
N/A |
-1 没有权限 |