# launchMapApp ^6.8
打开用户手机地图软件,传入标记地点。(打开地图软件后,用户可以使用地图软件的功能,比如导航等)
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
to | Object | N/A | |
from | Object | N/A |
- to 对象属性
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 | 终点的名称 |
- from 对象属性
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)
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 返回参数
- 成功时返回
Prop | Type | Default | Description |
---|---|---|---|
status | Number | N/A | 0打开成功,-1 没有权限 |
- 失败时返回
Prop | Type | Default | Description |
---|---|---|---|
errorCode | String | N/A | -1 没有权限 |