@doubao-apps/ai 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/733.js +41 -0
- package/dist/cli.js +1 -1
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/README.md +0 -32
- package/dist/contexts/doubao-apps-dev/references/reference/open-api.md +1 -366
- package/dist/index.js +1 -1
- package/dist/manifest.json +2 -2
- package/dist/skills/doubao-apps-dev/SKILL.md +4 -5
- package/dist/skills/doubao-apps-dev/references/reference/open-api/README.md +0 -32
- package/dist/skills/doubao-apps-dev/references/reference/open-api.md +1 -366
- package/dist/skills/h5-to-doubao/SKILL.md +1 -1
- package/package.json +1 -1
- package/dist/994.js +0 -41
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/01-/345/237/272/347/241/200-/350/264/246/345/217/267-/347/263/273/347/273/237.md +0 -536
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/02-/345/256/232/344/275/215.md +0 -359
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/03-/345/255/230/345/202/250.md +0 -409
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/04-/350/267/257/347/224/261.md +0 -165
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/05-/347/225/214/351/235/242-/344/272/244/344/272/222.md +0 -432
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/06-/347/225/214/351/235/242-/350/276/223/345/205/245.md +0 -72
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/07-/347/275/221/347/273/234.md +0 -468
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/08-/345/252/222/344/275/223.md +0 -346
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/09-/345/274/200/346/224/276/350/203/275/345/212/233-/344/270/232/345/212/241/350/203/275/345/212/233.md +0 -1238
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/10-/346/225/260/346/215/256/345/210/206/346/236/220.md +0 -67
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/11-/350/256/276/345/244/207-/350/223/235/347/211/231.md +0 -961
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/12-/350/256/276/345/244/207-wi-fi.md +0 -311
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/13-/350/256/276/345/244/207-/345/212/240/351/200/237/345/272/246/350/256/241.md +0 -104
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/14-/350/256/276/345/244/207-ibeacon.md +0 -148
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/15-/350/256/276/345/244/207-/347/275/227/347/233/230.md +0 -82
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/16-/350/256/276/345/244/207-/350/256/276/345/244/207/346/226/271/345/220/221.md +0 -104
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/17-/350/256/276/345/244/207-/351/231/200/350/236/272/344/273/252.md +0 -104
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/18-ui-/350/276/223/345/205/245.md +0 -49
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/19-/350/256/276/345/244/207-/347/275/221/347/273/234.md +0 -164
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/20-/350/256/276/345/244/207-/347/237/255/344/277/241.md +0 -62
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/21-/350/256/276/345/244/207-/346/227/240/351/232/234/347/242/215.md +0 -43
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/22-/350/256/276/345/244/207-/345/237/272/347/241/200/344/277/241/346/201/257.md +0 -133
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/23-/350/256/276/345/244/207-/347/224/265/346/261/240.md +0 -83
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/24-/350/256/276/345/244/207-/346/227/245/345/216/206.md +0 -215
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/25-/350/256/276/345/244/207-/345/211/252/350/264/264/346/235/277.md +0 -70
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/26-/350/256/276/345/244/207-/350/201/224/347/263/273/344/272/272.md +0 -270
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/27-/350/256/276/345/244/207-/345/212/240/345/257/206.md +0 -56
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/28-/350/256/276/345/244/207-/347/224/265/350/257/235.md +0 -41
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/29-/350/256/276/345/244/207-/346/211/253/347/240/201.md +0 -100
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/30-/350/256/276/345/244/207-/345/261/217/345/271/225.md +0 -173
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/31-/350/256/276/345/244/207-/351/234/207/345/212/250.md +0 -66
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/32-/346/226/207/344/273/266/347/263/273/347/273/237.md +0 -1043
- package/dist/skills/doubao-apps-dev/references/reference/open-api/01-/345/237/272/347/241/200-/350/264/246/345/217/267-/347/263/273/347/273/237.md +0 -536
- package/dist/skills/doubao-apps-dev/references/reference/open-api/02-/345/256/232/344/275/215.md +0 -359
- package/dist/skills/doubao-apps-dev/references/reference/open-api/03-/345/255/230/345/202/250.md +0 -409
- package/dist/skills/doubao-apps-dev/references/reference/open-api/04-/350/267/257/347/224/261.md +0 -165
- package/dist/skills/doubao-apps-dev/references/reference/open-api/05-/347/225/214/351/235/242-/344/272/244/344/272/222.md +0 -432
- package/dist/skills/doubao-apps-dev/references/reference/open-api/06-/347/225/214/351/235/242-/350/276/223/345/205/245.md +0 -72
- package/dist/skills/doubao-apps-dev/references/reference/open-api/07-/347/275/221/347/273/234.md +0 -468
- package/dist/skills/doubao-apps-dev/references/reference/open-api/08-/345/252/222/344/275/223.md +0 -346
- package/dist/skills/doubao-apps-dev/references/reference/open-api/09-/345/274/200/346/224/276/350/203/275/345/212/233-/344/270/232/345/212/241/350/203/275/345/212/233.md +0 -1238
- package/dist/skills/doubao-apps-dev/references/reference/open-api/10-/346/225/260/346/215/256/345/210/206/346/236/220.md +0 -67
- package/dist/skills/doubao-apps-dev/references/reference/open-api/11-/350/256/276/345/244/207-/350/223/235/347/211/231.md +0 -961
- package/dist/skills/doubao-apps-dev/references/reference/open-api/12-/350/256/276/345/244/207-wi-fi.md +0 -311
- package/dist/skills/doubao-apps-dev/references/reference/open-api/13-/350/256/276/345/244/207-/345/212/240/351/200/237/345/272/246/350/256/241.md +0 -104
- package/dist/skills/doubao-apps-dev/references/reference/open-api/14-/350/256/276/345/244/207-ibeacon.md +0 -148
- package/dist/skills/doubao-apps-dev/references/reference/open-api/15-/350/256/276/345/244/207-/347/275/227/347/233/230.md +0 -82
- package/dist/skills/doubao-apps-dev/references/reference/open-api/16-/350/256/276/345/244/207-/350/256/276/345/244/207/346/226/271/345/220/221.md +0 -104
- package/dist/skills/doubao-apps-dev/references/reference/open-api/17-/350/256/276/345/244/207-/351/231/200/350/236/272/344/273/252.md +0 -104
- package/dist/skills/doubao-apps-dev/references/reference/open-api/18-ui-/350/276/223/345/205/245.md +0 -49
- package/dist/skills/doubao-apps-dev/references/reference/open-api/19-/350/256/276/345/244/207-/347/275/221/347/273/234.md +0 -164
- package/dist/skills/doubao-apps-dev/references/reference/open-api/20-/350/256/276/345/244/207-/347/237/255/344/277/241.md +0 -62
- package/dist/skills/doubao-apps-dev/references/reference/open-api/21-/350/256/276/345/244/207-/346/227/240/351/232/234/347/242/215.md +0 -43
- package/dist/skills/doubao-apps-dev/references/reference/open-api/22-/350/256/276/345/244/207-/345/237/272/347/241/200/344/277/241/346/201/257.md +0 -133
- package/dist/skills/doubao-apps-dev/references/reference/open-api/23-/350/256/276/345/244/207-/347/224/265/346/261/240.md +0 -83
- package/dist/skills/doubao-apps-dev/references/reference/open-api/24-/350/256/276/345/244/207-/346/227/245/345/216/206.md +0 -215
- package/dist/skills/doubao-apps-dev/references/reference/open-api/25-/350/256/276/345/244/207-/345/211/252/350/264/264/346/235/277.md +0 -70
- package/dist/skills/doubao-apps-dev/references/reference/open-api/26-/350/256/276/345/244/207-/350/201/224/347/263/273/344/272/272.md +0 -270
- package/dist/skills/doubao-apps-dev/references/reference/open-api/27-/350/256/276/345/244/207-/345/212/240/345/257/206.md +0 -56
- package/dist/skills/doubao-apps-dev/references/reference/open-api/28-/350/256/276/345/244/207-/347/224/265/350/257/235.md +0 -41
- package/dist/skills/doubao-apps-dev/references/reference/open-api/29-/350/256/276/345/244/207-/346/211/253/347/240/201.md +0 -100
- package/dist/skills/doubao-apps-dev/references/reference/open-api/30-/350/256/276/345/244/207-/345/261/217/345/271/225.md +0 -173
- package/dist/skills/doubao-apps-dev/references/reference/open-api/31-/350/256/276/345/244/207-/351/234/207/345/212/250.md +0 -66
- package/dist/skills/doubao-apps-dev/references/reference/open-api/32-/346/226/207/344/273/266/347/263/273/347/273/237.md +0 -1043
package/dist/skills/doubao-apps-dev/references/reference/open-api/02-/345/256/232/344/275/215.md
DELETED
|
@@ -1,359 +0,0 @@
|
|
|
1
|
-
# Open API: 定位
|
|
2
|
-
|
|
3
|
-
获取设备当前的地理位置信息。
|
|
4
|
-
|
|
5
|
-
[返回目录](./README.md) | [返回速查](../open-api.md)
|
|
6
|
-
|
|
7
|
-
## 速查
|
|
8
|
-
|
|
9
|
-
| API | 说明 |
|
|
10
|
-
| --- | --- |
|
|
11
|
-
| [getLocation](#getlocation) | 获取设备当前的地理位置信息。<br><br>可能涉及定位授权。 |
|
|
12
|
-
| [chooseLocation](#chooselocation) | 打开地图选择位置。 |
|
|
13
|
-
| [openLocation](#openlocation) | 使用地图查看位置。 |
|
|
14
|
-
| [startLocationUpdate](#startlocationupdate) | 开始接收位置更新。<br><br>需配对调用 stopLocationUpdate。 |
|
|
15
|
-
| [stopLocationUpdate](#stoplocationupdate) | 停止接收位置更新。 |
|
|
16
|
-
| [onLocationChange](#onlocationchange) | 注册地理位置变化回调。<br><br>返回 void,不是 Promise。 |
|
|
17
|
-
| [offLocationChange](#offlocationchange) | 取消注册地理位置变化回调。<br><br>返回 void,不是 Promise。 |
|
|
18
|
-
| [onLocationChangeError](#onlocationchangeerror) | 注册位置更新异常回调。<br><br>返回 void,不是 Promise。 |
|
|
19
|
-
| [offLocationChangeError](#offlocationchangeerror) | 取消注册位置更新异常回调。<br><br>返回 void,不是 Promise。 |
|
|
20
|
-
|
|
21
|
-
## API 详情
|
|
22
|
-
|
|
23
|
-
<a id="getlocation"></a>
|
|
24
|
-
### getLocation()
|
|
25
|
-
|
|
26
|
-
> **getLocation**(`params`?): `Promise`\<[`GetLocationResponse`](#getlocationresponse)\>
|
|
27
|
-
|
|
28
|
-
获取设备当前的地理位置信息。
|
|
29
|
-
|
|
30
|
-
#### Parameters
|
|
31
|
-
|
|
32
|
-
• **params?**: [`GetLocationParams`](#getlocationparams)
|
|
33
|
-
|
|
34
|
-
#### Returns
|
|
35
|
-
|
|
36
|
-
`Promise`\<[`GetLocationResponse`](#getlocationresponse)\>
|
|
37
|
-
|
|
38
|
-
返回一个 Promise,成功时解析为包含地理位置信息的对象,包含:
|
|
39
|
-
- `latitude`: number - 纬度。
|
|
40
|
-
- `longitude`: number - 经度。
|
|
41
|
-
- `timestamp`: string - 时间戳。
|
|
42
|
-
- `speed`: number - 行进速度,单位:米/秒。
|
|
43
|
-
- `accuracy`: number - 定位精度,单位:米。
|
|
44
|
-
参考 [GetLocationResponse](#getlocationresponse)。
|
|
45
|
-
|
|
46
|
-
#### Throws
|
|
47
|
-
|
|
48
|
-
如果调用失败(例如,用户拒绝权限、定位服务关闭等),则抛出此错误。
|
|
49
|
-
|
|
50
|
-
#### Remarks
|
|
51
|
-
|
|
52
|
-
可能涉及定位授权。
|
|
53
|
-
|
|
54
|
-
#### Example
|
|
55
|
-
|
|
56
|
-
```typescript
|
|
57
|
-
import { getLocation } from '@byted-doubao-apps/framework';
|
|
58
|
-
|
|
59
|
-
async function fetchLocation() {
|
|
60
|
-
try {
|
|
61
|
-
const locationData = await getLocation();
|
|
62
|
-
console.log('纬度:', locationData.latitude);
|
|
63
|
-
console.log('经度:', locationData.longitude);
|
|
64
|
-
console.log('时间戳:', locationData.timestamp);
|
|
65
|
-
console.log('行进速度:', locationData.speed);
|
|
66
|
-
console.log('定位精度:', locationData.accuracy);
|
|
67
|
-
} catch (error) {
|
|
68
|
-
console.error('获取位置失败:', error);
|
|
69
|
-
// 处理错误,例如提示用户开启定位权限
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
fetchLocation();
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
<a id="chooselocation"></a>
|
|
77
|
-
### chooseLocation()
|
|
78
|
-
|
|
79
|
-
> **chooseLocation**(`params`?): `Promise`\<[`ChooseLocationResponse`](#chooselocationresponse)\>
|
|
80
|
-
|
|
81
|
-
打开地图选择位置。
|
|
82
|
-
|
|
83
|
-
#### Parameters
|
|
84
|
-
|
|
85
|
-
• **params?**: [`ChooseLocationParams`](#chooselocationparams)
|
|
86
|
-
|
|
87
|
-
#### Returns
|
|
88
|
-
|
|
89
|
-
`Promise`\<[`ChooseLocationResponse`](#chooselocationresponse)\>
|
|
90
|
-
|
|
91
|
-
<a id="openlocation"></a>
|
|
92
|
-
### openLocation()
|
|
93
|
-
|
|
94
|
-
> **openLocation**(`params`): `Promise`\<`object`\>
|
|
95
|
-
|
|
96
|
-
使用地图查看位置。
|
|
97
|
-
|
|
98
|
-
#### Parameters
|
|
99
|
-
|
|
100
|
-
• **params**: [`OpenLocationParams`](#openlocationparams)
|
|
101
|
-
|
|
102
|
-
#### Returns
|
|
103
|
-
|
|
104
|
-
`Promise`\<`object`\>
|
|
105
|
-
|
|
106
|
-
<a id="startlocationupdate"></a>
|
|
107
|
-
### startLocationUpdate()
|
|
108
|
-
|
|
109
|
-
> **startLocationUpdate**(`params`?): `Promise`\<`object`\>
|
|
110
|
-
|
|
111
|
-
开始接收位置更新。
|
|
112
|
-
|
|
113
|
-
#### Parameters
|
|
114
|
-
|
|
115
|
-
• **params?**: [`StartLocationUpdateParams`](#startlocationupdateparams)
|
|
116
|
-
|
|
117
|
-
#### Returns
|
|
118
|
-
|
|
119
|
-
`Promise`\<`object`\>
|
|
120
|
-
|
|
121
|
-
#### Remarks
|
|
122
|
-
|
|
123
|
-
需配对调用 stopLocationUpdate。
|
|
124
|
-
|
|
125
|
-
<a id="stoplocationupdate"></a>
|
|
126
|
-
### stopLocationUpdate()
|
|
127
|
-
|
|
128
|
-
> **stopLocationUpdate**(`params`?): `Promise`\<`object`\>
|
|
129
|
-
|
|
130
|
-
停止接收位置更新。
|
|
131
|
-
|
|
132
|
-
#### Parameters
|
|
133
|
-
|
|
134
|
-
• **params?**
|
|
135
|
-
|
|
136
|
-
#### Returns
|
|
137
|
-
|
|
138
|
-
`Promise`\<`object`\>
|
|
139
|
-
|
|
140
|
-
<a id="onlocationchange"></a>
|
|
141
|
-
### onLocationChange()
|
|
142
|
-
|
|
143
|
-
> **onLocationChange**(`callback`): `void`
|
|
144
|
-
|
|
145
|
-
注册地理位置变化回调。
|
|
146
|
-
|
|
147
|
-
#### Parameters
|
|
148
|
-
|
|
149
|
-
• **callback**: [`LocationChangeListener`](#locationchangelistener)
|
|
150
|
-
|
|
151
|
-
#### Returns
|
|
152
|
-
|
|
153
|
-
`void`
|
|
154
|
-
|
|
155
|
-
<a id="offlocationchange"></a>
|
|
156
|
-
### offLocationChange()
|
|
157
|
-
|
|
158
|
-
> **offLocationChange**(`callback`?): `void`
|
|
159
|
-
|
|
160
|
-
取消注册地理位置变化回调。
|
|
161
|
-
|
|
162
|
-
#### Parameters
|
|
163
|
-
|
|
164
|
-
• **callback?**: [`LocationChangeListener`](#locationchangelistener)
|
|
165
|
-
|
|
166
|
-
#### Returns
|
|
167
|
-
|
|
168
|
-
`void`
|
|
169
|
-
|
|
170
|
-
<a id="onlocationchangeerror"></a>
|
|
171
|
-
### onLocationChangeError()
|
|
172
|
-
|
|
173
|
-
> **onLocationChangeError**(`callback`): `void`
|
|
174
|
-
|
|
175
|
-
注册位置更新异常回调。
|
|
176
|
-
|
|
177
|
-
#### Parameters
|
|
178
|
-
|
|
179
|
-
• **callback**: [`LocationChangeErrorListener`](#locationchangeerrorlistener)
|
|
180
|
-
|
|
181
|
-
#### Returns
|
|
182
|
-
|
|
183
|
-
`void`
|
|
184
|
-
|
|
185
|
-
<a id="offlocationchangeerror"></a>
|
|
186
|
-
### offLocationChangeError()
|
|
187
|
-
|
|
188
|
-
> **offLocationChangeError**(`callback`?): `void`
|
|
189
|
-
|
|
190
|
-
取消注册位置更新异常回调。
|
|
191
|
-
|
|
192
|
-
#### Parameters
|
|
193
|
-
|
|
194
|
-
• **callback?**: [`LocationChangeErrorListener`](#locationchangeerrorlistener)
|
|
195
|
-
|
|
196
|
-
#### Returns
|
|
197
|
-
|
|
198
|
-
`void`
|
|
199
|
-
|
|
200
|
-
## 相关类型
|
|
201
|
-
|
|
202
|
-
<a id="getlocationparams"></a>
|
|
203
|
-
### GetLocationParams
|
|
204
|
-
|
|
205
|
-
#### Properties
|
|
206
|
-
|
|
207
|
-
##### maxCacheMs?
|
|
208
|
-
|
|
209
|
-
> `optional` **maxCacheMs**: `number`
|
|
210
|
-
|
|
211
|
-
缓存时间,单位毫秒,默认为0
|
|
212
|
-
|
|
213
|
-
##### mode?
|
|
214
|
-
|
|
215
|
-
> `optional` **mode**: `number`
|
|
216
|
-
|
|
217
|
-
定位模式
|
|
218
|
-
0:低功耗
|
|
219
|
-
1:仅设备
|
|
220
|
-
2:高精度(默认)
|
|
221
|
-
|
|
222
|
-
##### source?
|
|
223
|
-
|
|
224
|
-
> `optional` **source**: `string`
|
|
225
|
-
|
|
226
|
-
调用业务方
|
|
227
|
-
|
|
228
|
-
##### timeoutMs?
|
|
229
|
-
|
|
230
|
-
> `optional` **timeoutMs**: `number`
|
|
231
|
-
|
|
232
|
-
超时时间,单位毫秒,默认 30000
|
|
233
|
-
|
|
234
|
-
<a id="getlocationresponse"></a>
|
|
235
|
-
### GetLocationResponse
|
|
236
|
-
|
|
237
|
-
#### Properties
|
|
238
|
-
|
|
239
|
-
##### accuracy
|
|
240
|
-
|
|
241
|
-
> **accuracy**: `number`
|
|
242
|
-
|
|
243
|
-
定位精度,单位:米
|
|
244
|
-
|
|
245
|
-
##### latitude
|
|
246
|
-
|
|
247
|
-
> **latitude**: `number`
|
|
248
|
-
|
|
249
|
-
纬度
|
|
250
|
-
|
|
251
|
-
##### longitude
|
|
252
|
-
|
|
253
|
-
> **longitude**: `number`
|
|
254
|
-
|
|
255
|
-
经度
|
|
256
|
-
|
|
257
|
-
##### speed
|
|
258
|
-
|
|
259
|
-
> **speed**: `number`
|
|
260
|
-
|
|
261
|
-
行进速度,单位:米/秒
|
|
262
|
-
|
|
263
|
-
##### timestamp
|
|
264
|
-
|
|
265
|
-
> **timestamp**: `string`
|
|
266
|
-
|
|
267
|
-
时间戳
|
|
268
|
-
|
|
269
|
-
<a id="chooselocationparams"></a>
|
|
270
|
-
### ChooseLocationParams
|
|
271
|
-
|
|
272
|
-
#### Properties
|
|
273
|
-
|
|
274
|
-
##### latitude?
|
|
275
|
-
|
|
276
|
-
> `optional` **latitude**: `number`
|
|
277
|
-
|
|
278
|
-
目标地纬度
|
|
279
|
-
|
|
280
|
-
##### longitude?
|
|
281
|
-
|
|
282
|
-
> `optional` **longitude**: `number`
|
|
283
|
-
|
|
284
|
-
目标地经度
|
|
285
|
-
|
|
286
|
-
<a id="chooselocationresponse"></a>
|
|
287
|
-
### ChooseLocationResponse
|
|
288
|
-
|
|
289
|
-
#### Properties
|
|
290
|
-
|
|
291
|
-
##### address?
|
|
292
|
-
|
|
293
|
-
> `optional` **address**: `string`
|
|
294
|
-
|
|
295
|
-
地址详情
|
|
296
|
-
|
|
297
|
-
##### latitude
|
|
298
|
-
|
|
299
|
-
> **latitude**: `number`
|
|
300
|
-
|
|
301
|
-
纬度,GCJ-02 坐标系
|
|
302
|
-
|
|
303
|
-
##### longitude
|
|
304
|
-
|
|
305
|
-
> **longitude**: `number`
|
|
306
|
-
|
|
307
|
-
经度,GCJ-02 坐标系
|
|
308
|
-
|
|
309
|
-
##### name?
|
|
310
|
-
|
|
311
|
-
> `optional` **name**: `string`
|
|
312
|
-
|
|
313
|
-
位置名称
|
|
314
|
-
|
|
315
|
-
<a id="openlocationparams"></a>
|
|
316
|
-
### OpenLocationParams
|
|
317
|
-
|
|
318
|
-
#### Properties
|
|
319
|
-
|
|
320
|
-
##### address?
|
|
321
|
-
|
|
322
|
-
> `optional` **address**: `string`
|
|
323
|
-
|
|
324
|
-
地址详情
|
|
325
|
-
|
|
326
|
-
##### latitude
|
|
327
|
-
|
|
328
|
-
> **latitude**: `number`
|
|
329
|
-
|
|
330
|
-
纬度
|
|
331
|
-
|
|
332
|
-
##### longitude
|
|
333
|
-
|
|
334
|
-
> **longitude**: `number`
|
|
335
|
-
|
|
336
|
-
经度
|
|
337
|
-
|
|
338
|
-
##### name?
|
|
339
|
-
|
|
340
|
-
> `optional` **name**: `string`
|
|
341
|
-
|
|
342
|
-
位置名称
|
|
343
|
-
|
|
344
|
-
##### scale?
|
|
345
|
-
|
|
346
|
-
> `optional` **scale**: `number`
|
|
347
|
-
|
|
348
|
-
缩放比例,范围 5 ~ 18
|
|
349
|
-
|
|
350
|
-
<a id="startlocationupdateparams"></a>
|
|
351
|
-
### StartLocationUpdateParams
|
|
352
|
-
|
|
353
|
-
#### Properties
|
|
354
|
-
|
|
355
|
-
##### type?
|
|
356
|
-
|
|
357
|
-
> `optional` **type**: `"wgs84"` \| `"gcj02"`
|
|
358
|
-
|
|
359
|
-
坐标系类型,支持 wgs84 或 gcj02
|