@ray-js/api 1.7.79 → 1.7.80

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.
Files changed (56) hide show
  1. package/@types/AIKit.d.ts +1140 -1009
  2. package/@types/AVideoKit.d.ts +26 -101
  3. package/@types/BaseKit.d.ts +234 -210
  4. package/@types/BizKit.d.ts +271 -296
  5. package/@types/DeviceKit.d.ts +57 -88
  6. package/@types/GroupCITestKit.d.ts +1 -3
  7. package/@types/HealthKit.d.ts +273 -230
  8. package/@types/HomeKit.d.ts +1062 -891
  9. package/@types/IPCKit.d.ts +23 -50
  10. package/@types/LightKit.d.ts +2 -2
  11. package/@types/MapKit.d.ts +592 -381
  12. package/@types/MediaPlayerKit.d.ts +4 -28
  13. package/@types/MiniKit.d.ts +198 -375
  14. package/@types/P2PKit.d.ts +139 -205
  15. package/@types/PayKit.d.ts +10 -79
  16. package/@types/SweeperKit.d.ts +10 -10
  17. package/@types/ThirdAuthKit.d.ts +28 -252
  18. package/@types/WearKit.d.ts +630 -1593
  19. package/@types/api-extend.d.ts +0 -63
  20. package/lib/AIKit-1.6.0.d.ts +732 -35
  21. package/lib/AIKit-1.6.0.js +732 -51
  22. package/lib/BaseKit-3.17.7.d.ts +0 -214
  23. package/lib/BaseKit-3.17.7.js +1 -227
  24. package/lib/DeviceKit-4.13.1.d.ts +3666 -0
  25. package/lib/DeviceKit-4.13.1.js +3666 -0
  26. package/lib/HealthKit-6.5.0.d.ts +603 -0
  27. package/lib/HealthKit-6.5.0.js +603 -0
  28. package/lib/HomeKit-3.1.4.d.ts +4 -0
  29. package/lib/HomeKit-3.1.4.js +4 -0
  30. package/lib/IPCKit-6.4.5.d.ts +0 -1
  31. package/lib/IPCKit-6.4.5.js +0 -1
  32. package/lib/MapKit-3.4.13.d.ts +251 -0
  33. package/lib/MapKit-3.4.13.js +251 -0
  34. package/lib/MediaKit-3.4.1.d.ts +16 -0
  35. package/lib/MediaKit-3.4.1.js +16 -0
  36. package/lib/PlayNetKit-1.3.30.d.ts +930 -0
  37. package/lib/PlayNetKit-1.3.30.js +930 -0
  38. package/lib/cloud/alarm.d.ts +38 -5
  39. package/lib/cloud/alarm.js +38 -5
  40. package/lib/cloud/device.d.ts +42 -6
  41. package/lib/cloud/device.js +42 -6
  42. package/lib/cloud/gateway.d.ts +16 -0
  43. package/lib/cloud/gateway.js +16 -0
  44. package/lib/cloud/health.d.ts +1 -0
  45. package/lib/cloud/health.js +272 -0
  46. package/lib/cloud/interface.d.ts +161 -0
  47. package/lib/cloud/interface.js +18 -0
  48. package/lib/cloud/statistic.d.ts +112 -26
  49. package/lib/cloud/statistic.js +112 -26
  50. package/lib/cloud/timer.d.ts +2 -4
  51. package/lib/nativeRouters/outdoors.d.ts +2 -0
  52. package/lib/nativeRouters/outdoors.js +2 -0
  53. package/lib/nativeRouters/remoteGroup.d.ts +2 -0
  54. package/lib/nativeRouters/remoteGroup.js +2 -0
  55. package/lib/panel/publishDps.js +1 -1
  56. package/package.json +5 -5
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * MapKit
3
3
  *
4
- * @version 7.8.2
4
+ * @version 7.5.9
5
5
  */
6
6
  declare namespace ty.map {
7
7
  /**
@@ -14,16 +14,18 @@ declare namespace ty.map {
14
14
  /**
15
15
  * 区分不同的地理围栏业务。空数据时默认为场景类型地理围栏 GeofenceBusinessType.Scene。
16
16
  * @since MapKit 3.9.1
17
+ * @since MapKit 3.9.8
17
18
  */
18
19
  businessType?: string
19
20
  /**
20
21
  * 该业务类型的附加数据
21
22
  * @since MapKit 3.9.1
23
+ * @since MapKit 3.9.8
22
24
  */
23
25
  businessData?: Record<string, any>
24
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
26
+ /** complete 完成回调(成功、失败都会触发) */
25
27
  complete?: () => void
26
- /** 接口调用成功的回调函数 */
28
+ /** success 成功回调 */
27
29
  success?: (params: {
28
30
  /**
29
31
  * 是否支持地理围栏
@@ -32,7 +34,7 @@ declare namespace ty.map {
32
34
  */
33
35
  isSupport?: boolean
34
36
  }) => void
35
- /** 接口调用失败的回调函数 */
37
+ /** fail 失败回调 */
36
38
  fail?: (params: {
37
39
  /** 错误信息 */
38
40
  errorMsg: string
@@ -58,25 +60,28 @@ declare namespace ty.map {
58
60
  /**
59
61
  * 区分不同的地理围栏业务。空数据时默认为场景类型地理围栏 GeofenceBusinessType.Scene。
60
62
  * @since MapKit 3.9.1
63
+ * @since MapKit 3.9.8
61
64
  */
62
65
  businessType?: string
63
66
  /**
64
67
  * 该业务类型的附加数据
65
68
  * @since MapKit 3.9.1
69
+ * @since MapKit 3.9.8
66
70
  */
67
71
  businessData?: Record<string, any>
68
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
72
+ /** complete 完成回调(成功、失败都会触发) */
69
73
  complete?: () => void
70
- /** 接口调用成功的回调函数 */
74
+ /** success 成功回调 */
71
75
  success?: (params: {
72
76
  /**
73
77
  * 地理围栏是否达到上限
74
78
  * @since MapKit 3.9.1
79
+ * @since MapKit 3.0.5
75
80
  * @defaultValue false
76
81
  */
77
82
  reachLimit?: boolean
78
83
  }) => void
79
- /** 接口调用失败的回调函数 */
84
+ /** fail 失败回调 */
80
85
  fail?: (params: {
81
86
  /** 错误信息 */
82
87
  errorMsg: string
@@ -103,16 +108,18 @@ declare namespace ty.map {
103
108
  /**
104
109
  * 区分不同的地理围栏业务。空数据时默认为场景类型地理围栏 GeofenceBusinessType.Scene。
105
110
  * @since MapKit 3.9.1
111
+ * @since MapKit 3.9.8
106
112
  */
107
- businessInfo?: GeofenceBusinessInfo
113
+ businessInfo?: GeofenceBusinessInfo_oii5Sn
108
114
  /**
109
115
  * 地理围栏信息
110
116
  * @since MapKit 3.9.1
117
+ * @since MapKit 3.9.8
111
118
  */
112
- info: GeofenceInfo
113
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
119
+ info: GeofenceInfo_lkV0Od
120
+ /** complete 完成回调(成功、失败都会触发) */
114
121
  complete?: () => void
115
- /** 接口调用成功的回调函数 */
122
+ /** success 成功回调 */
116
123
  success?: (params: {
117
124
  /**
118
125
  * 取消保存地理围栏
@@ -124,9 +131,9 @@ declare namespace ty.map {
124
131
  * 地理围栏信息
125
132
  * @since MapKit 3.9.1
126
133
  */
127
- geofenceInfo: GeofenceInfo
134
+ geofenceInfo: GeofenceInfo_lkV0Od
128
135
  }) => void
129
- /** 接口调用失败的回调函数 */
136
+ /** fail 失败回调 */
130
137
  fail?: (params: {
131
138
  /** 错误信息 */
132
139
  errorMsg: string
@@ -152,18 +159,20 @@ declare namespace ty.map {
152
159
  /**
153
160
  * 区分不同的地理围栏业务。空数据时默认为场景类型地理围栏 GeofenceBusinessType.Scene。
154
161
  * @since MapKit 3.9.1
162
+ * @since MapKit 3.9.8
155
163
  */
156
- businessInfo?: GeofenceBusinessInfo
164
+ businessInfo?: GeofenceBusinessInfo_oii5Sn
157
165
  /**
158
166
  * 地理围栏信息
159
167
  * @since MapKit 3.9.1
168
+ * @since MapKit 3.9.8
160
169
  */
161
- info: GeofenceInfo
162
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
170
+ info: GeofenceInfo_lkV0Od
171
+ /** complete 完成回调(成功、失败都会触发) */
163
172
  complete?: () => void
164
- /** 接口调用成功的回调函数 */
173
+ /** success 成功回调 */
165
174
  success?: (params: null) => void
166
- /** 接口调用失败的回调函数 */
175
+ /** fail 失败回调 */
167
176
  fail?: (params: {
168
177
  /** 错误信息 */
169
178
  errorMsg: string
@@ -189,18 +198,20 @@ declare namespace ty.map {
189
198
  /**
190
199
  * 区分不同的地理围栏业务。空数据时默认为场景类型地理围栏 GeofenceBusinessType.Scene。
191
200
  * @since MapKit 3.9.1
201
+ * @since MapKit 3.9.8
192
202
  */
193
- businessInfo?: GeofenceBusinessInfo
203
+ businessInfo?: GeofenceBusinessInfo_oii5Sn
194
204
  /**
195
205
  * 地理围栏信息
196
206
  * @since MapKit 3.9.1
207
+ * @since MapKit 3.9.8
197
208
  */
198
- info: GeofenceInfo
199
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
209
+ info: GeofenceInfo_lkV0Od
210
+ /** complete 完成回调(成功、失败都会触发) */
200
211
  complete?: () => void
201
- /** 接口调用成功的回调函数 */
212
+ /** success 成功回调 */
202
213
  success?: (params: null) => void
203
- /** 接口调用失败的回调函数 */
214
+ /** fail 失败回调 */
204
215
  fail?: (params: {
205
216
  /** 错误信息 */
206
217
  errorMsg: string
@@ -225,19 +236,21 @@ declare namespace ty.map {
225
236
  export function changeGeofenceStatus(params: {
226
237
  /**
227
238
  * 区分不同的地理围栏业务。空数据时默认为场景类型地理围栏 GeofenceBusinessType.Scene。
239
+ * @since MapKit 3.9.1
228
240
  * @since MapKit 3.9.8
229
241
  */
230
- businessInfo?: GeofenceBusinessInfo
242
+ businessInfo?: GeofenceBusinessInfo_oii5Sn
231
243
  /**
232
244
  * 地理围栏信息
245
+ * @since MapKit 3.9.1
233
246
  * @since MapKit 3.9.8
234
247
  */
235
- info: GeofenceInfo
236
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
248
+ info: GeofenceInfo_lkV0Od
249
+ /** complete 完成回调(成功、失败都会触发) */
237
250
  complete?: () => void
238
- /** 接口调用成功的回调函数 */
251
+ /** success 成功回调 */
239
252
  success?: (params: null) => void
240
- /** 接口调用失败的回调函数 */
253
+ /** fail 失败回调 */
241
254
  fail?: (params: {
242
255
  /** 错误信息 */
243
256
  errorMsg: string
@@ -257,7 +270,7 @@ declare namespace ty.map {
257
270
  * 取消地理围栏
258
271
  * 权限: [scope.location]
259
272
  * @public
260
- * @since MapKit 3.0.1
273
+ * @since MapKit 2.5.0
261
274
  * @platform iOS Android
262
275
  * @deprecated unregister
263
276
  */
@@ -265,29 +278,39 @@ declare namespace ty.map {
265
278
  /**
266
279
  * 地理围栏名称
267
280
  * @since MapKit 3.9.1
281
+ * @since MapKit 3.9.8
282
+ * @since MapKit 2.5.0
268
283
  */
269
284
  geoTitle?: string
270
285
  /**
271
286
  * 经度
272
287
  * @since MapKit 3.9.1
288
+ * @since MapKit 3.9.8
289
+ * @since MapKit 2.5.0
273
290
  * @defaultValue 0.0
274
291
  */
275
292
  longitude?: number
276
293
  /**
277
294
  * 纬度
278
295
  * @since MapKit 3.9.1
296
+ * @since MapKit 3.9.8
297
+ * @since MapKit 2.5.0
279
298
  * @defaultValue 0.0
280
299
  */
281
300
  latitude?: number
282
301
  /**
283
302
  * 半径
284
303
  * @since MapKit 3.9.1
304
+ * @since MapKit 3.9.8
305
+ * @since MapKit 2.5.0
285
306
  * @defaultValue 0
286
307
  */
287
308
  radius?: number
288
309
  /**
289
310
  * id
290
311
  * @since MapKit 3.9.1
312
+ * @since MapKit 3.9.8
313
+ * @since MapKit 2.5.0
291
314
  */
292
315
  geofenceId?: string
293
316
  /**
@@ -295,14 +318,16 @@ declare namespace ty.map {
295
318
  * 0:进度地理围栏
296
319
  * 1:离开地理围栏
297
320
  * @since MapKit 3.9.1
321
+ * @since MapKit 3.9.8
322
+ * @since MapKit 2.5.0
298
323
  * @defaultValue 0
299
324
  */
300
325
  type?: number
301
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
326
+ /** complete 完成回调(成功、失败都会触发) */
302
327
  complete?: () => void
303
- /** 接口调用成功的回调函数 */
328
+ /** success 成功回调 */
304
329
  success?: (params: null) => void
305
- /** 接口调用失败的回调函数 */
330
+ /** fail 失败回调 */
306
331
  fail?: (params: {
307
332
  /** 错误信息 */
308
333
  errorMsg: string
@@ -322,23 +347,24 @@ declare namespace ty.map {
322
347
  * 地理围栏是否达到上限
323
348
  * 权限: [scope.location]
324
349
  * @public
325
- * @since MapKit 3.0.1
350
+ * @since MapKit 2.5.0
326
351
  * @platform iOS Android
327
352
  * @deprecated isReachLimit
328
353
  */
329
354
  export function isGeofenceReachLimit(params?: {
330
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
355
+ /** complete 完成回调(成功、失败都会触发) */
331
356
  complete?: () => void
332
- /** 接口调用成功的回调函数 */
357
+ /** success 成功回调 */
333
358
  success?: (params: {
334
359
  /**
335
360
  * 地理围栏是否达到上限
361
+ * @since MapKit 3.9.1
336
362
  * @since MapKit 3.0.5
337
363
  * @defaultValue false
338
364
  */
339
365
  reachLimit?: boolean
340
366
  }) => void
341
- /** 接口调用失败的回调函数 */
367
+ /** fail 失败回调 */
342
368
  fail?: (params: {
343
369
  /** 错误信息 */
344
370
  errorMsg: string
@@ -358,24 +384,24 @@ declare namespace ty.map {
358
384
  * 更新地理围栏
359
385
  * 权限: [scope.location]
360
386
  * @public
361
- * @since MapKit 3.0.1
387
+ * @since MapKit 2.5.0
362
388
  * @platform iOS Android
363
389
  * @deprecated register
364
390
  */
365
391
  export function updateGeofence(params: {
366
392
  /**
367
393
  * 注册的地理围栏
368
- * @since MapKit 3.0.1
394
+ * @since MapKit 2.5.0
369
395
  */
370
- registerGeoFence: GeofenceInfo[]
396
+ registerGeoFence: GeofenceInfo_lkV0Od[]
371
397
  /**
372
398
  * 取消的地理围栏
373
- * @since MapKit 3.0.1
399
+ * @since MapKit 2.5.0
374
400
  */
375
- unregisterGeoFence: GeofenceInfo[]
376
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
401
+ unregisterGeoFence: GeofenceInfo_lkV0Od[]
402
+ /** complete 完成回调(成功、失败都会触发) */
377
403
  complete?: () => void
378
- /** 接口调用成功的回调函数 */
404
+ /** success 成功回调 */
379
405
  success?: (params: {
380
406
  /**
381
407
  * 更新成功
@@ -384,7 +410,7 @@ declare namespace ty.map {
384
410
  */
385
411
  success?: boolean
386
412
  }) => void
387
- /** 接口调用失败的回调函数 */
413
+ /** fail 失败回调 */
388
414
  fail?: (params: {
389
415
  /** 错误信息 */
390
416
  errorMsg: string
@@ -404,7 +430,7 @@ declare namespace ty.map {
404
430
  * 注册地理围栏
405
431
  * 权限: [scope.location]
406
432
  * @public
407
- * @since MapKit 3.0.1
433
+ * @since MapKit 2.5.0
408
434
  * @platform iOS Android
409
435
  * @deprecated register
410
436
  */
@@ -412,29 +438,39 @@ declare namespace ty.map {
412
438
  /**
413
439
  * 地理围栏名称
414
440
  * @since MapKit 3.9.1
441
+ * @since MapKit 3.9.8
442
+ * @since MapKit 2.5.0
415
443
  */
416
444
  geoTitle?: string
417
445
  /**
418
446
  * 经度
419
447
  * @since MapKit 3.9.1
448
+ * @since MapKit 3.9.8
449
+ * @since MapKit 2.5.0
420
450
  * @defaultValue 0.0
421
451
  */
422
452
  longitude?: number
423
453
  /**
424
454
  * 纬度
425
455
  * @since MapKit 3.9.1
456
+ * @since MapKit 3.9.8
457
+ * @since MapKit 2.5.0
426
458
  * @defaultValue 0.0
427
459
  */
428
460
  latitude?: number
429
461
  /**
430
462
  * 半径
431
463
  * @since MapKit 3.9.1
464
+ * @since MapKit 3.9.8
465
+ * @since MapKit 2.5.0
432
466
  * @defaultValue 0
433
467
  */
434
468
  radius?: number
435
469
  /**
436
470
  * id
437
471
  * @since MapKit 3.9.1
472
+ * @since MapKit 3.9.8
473
+ * @since MapKit 2.5.0
438
474
  */
439
475
  geofenceId?: string
440
476
  /**
@@ -442,14 +478,16 @@ declare namespace ty.map {
442
478
  * 0:进度地理围栏
443
479
  * 1:离开地理围栏
444
480
  * @since MapKit 3.9.1
481
+ * @since MapKit 3.9.8
482
+ * @since MapKit 2.5.0
445
483
  * @defaultValue 0
446
484
  */
447
485
  type?: number
448
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
486
+ /** complete 完成回调(成功、失败都会触发) */
449
487
  complete?: () => void
450
- /** 接口调用成功的回调函数 */
488
+ /** success 成功回调 */
451
489
  success?: (params: null) => void
452
- /** 接口调用失败的回调函数 */
490
+ /** fail 失败回调 */
453
491
  fail?: (params: {
454
492
  /** 错误信息 */
455
493
  errorMsg: string
@@ -469,7 +507,7 @@ declare namespace ty.map {
469
507
  * 打开地理围栏地图页面,获取地理围栏信息(新建或者编辑地理围栏)
470
508
  * 权限: [scope.location]
471
509
  * @public
472
- * @since MapKit 3.0.1
510
+ * @since MapKit 2.5.0
473
511
  * @platform iOS Android
474
512
  * @deprecated openMap
475
513
  */
@@ -477,29 +515,39 @@ declare namespace ty.map {
477
515
  /**
478
516
  * 地理围栏名称
479
517
  * @since MapKit 3.9.1
518
+ * @since MapKit 3.9.8
519
+ * @since MapKit 2.5.0
480
520
  */
481
521
  geoTitle?: string
482
522
  /**
483
523
  * 经度
484
524
  * @since MapKit 3.9.1
525
+ * @since MapKit 3.9.8
526
+ * @since MapKit 2.5.0
485
527
  * @defaultValue 0.0
486
528
  */
487
529
  longitude?: number
488
530
  /**
489
531
  * 纬度
490
532
  * @since MapKit 3.9.1
533
+ * @since MapKit 3.9.8
534
+ * @since MapKit 2.5.0
491
535
  * @defaultValue 0.0
492
536
  */
493
537
  latitude?: number
494
538
  /**
495
539
  * 半径
496
540
  * @since MapKit 3.9.1
541
+ * @since MapKit 3.9.8
542
+ * @since MapKit 2.5.0
497
543
  * @defaultValue 0
498
544
  */
499
545
  radius?: number
500
546
  /**
501
547
  * id
502
548
  * @since MapKit 3.9.1
549
+ * @since MapKit 3.9.8
550
+ * @since MapKit 2.5.0
503
551
  */
504
552
  geofenceId?: string
505
553
  /**
@@ -507,14 +555,16 @@ declare namespace ty.map {
507
555
  * 0:进度地理围栏
508
556
  * 1:离开地理围栏
509
557
  * @since MapKit 3.9.1
558
+ * @since MapKit 3.9.8
559
+ * @since MapKit 2.5.0
510
560
  * @defaultValue 0
511
561
  */
512
562
  type?: number
513
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
563
+ /** complete 完成回调(成功、失败都会触发) */
514
564
  complete?: () => void
515
- /** 接口调用成功的回调函数 */
565
+ /** success 成功回调 */
516
566
  success?: (params: null) => void
517
- /** 接口调用失败的回调函数 */
567
+ /** fail 失败回调 */
518
568
  fail?: (params: {
519
569
  /** 错误信息 */
520
570
  errorMsg: string
@@ -531,118 +581,118 @@ declare namespace ty.map {
531
581
  }): void
532
582
 
533
583
  /**
534
- * 获取当前地理位置和速度
584
+ * Get the current geographic location and speed
535
585
  * @public
536
586
  * @since MapKit 1.0.6
537
587
  * @platform iOS Android
538
588
  */
539
589
  export function getLocation(params: {
540
590
  /**
541
- * wgs84返回GPS坐标,gcj02返回可用于openLocation的坐标
591
+ * wgs84 returns GPS coordinates, gcj02 returns coordinates usable for openLocation
542
592
  * @since MapKit 1.0.6
543
593
  */
544
594
  type: string
545
595
  /**
546
- * 传入true会返回高度信息。由于获取高度需要较高精度,会减慢接口响应速度。
596
+ * Pass true to return altitude information. Since obtaining altitude requires high precision, it will slow down the interface response speed.
547
597
  * @since MapKit 1.0.6
548
598
  */
549
599
  altitude: boolean
550
600
  /**
551
- * 开启高精度定位
601
+ * Enable high-accuracy positioning
552
602
  * @since MapKit 1.0.6
553
603
  */
554
604
  isHighAccuracy: boolean
555
605
  /**
556
- * 高精度定位超时时间(ms)。指定时间内返回最高精度,该值3000ms以上高精度定位才有效果。
606
+ * High-accuracy positioning timeout (ms). Returns the highest accuracy within the specified time. This value must be above 3000ms for high-accuracy positioning to be effective.
557
607
  * @since MapKit 1.0.6
558
608
  */
559
609
  highAccuracyExpireTime: number
560
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
610
+ /** complete 完成回调(成功、失败都会触发) */
561
611
  complete?: () => void
562
- /** 接口调用成功的回调函数 */
612
+ /** success 成功回调 */
563
613
  success?: (params: {
564
614
  /**
565
- * 纬度,范围 -90~90,负数表示南纬
615
+ * Latitude, range -90~90, negative values indicate south latitude
566
616
  * @since MapKit 3.0.5
567
617
  */
568
618
  latitude: number
569
619
  /**
570
- * 经度,范围 -180~180,负数表示西经
620
+ * Longitude, range -180~180, negative values indicate west longitude
571
621
  * @since MapKit 3.0.5
572
622
  */
573
623
  longitude: number
574
624
  /**
575
- * 速度,单位 m/s
625
+ * Speed, unit m/s
576
626
  * @since MapKit 3.0.5
577
627
  */
578
628
  speed: number
579
629
  /**
580
- * 定位精度
630
+ * Accuracy of the location
581
631
  * @since MapKit 3.0.5
582
632
  */
583
633
  accuracy: number
584
634
  /**
585
- * 海拔,单位 m
635
+ * Altitude, unit m
586
636
  * @since MapKit 3.0.5
587
637
  */
588
638
  altitude: number
589
639
  /**
590
- * 垂直精度,单位 mAndroid无法获取,返回0
640
+ * Vertical accuracy, unit m (Android cannot obtain this, returns 0)
591
641
  * @since MapKit 3.0.5
592
642
  */
593
643
  verticalAccuracy: number
594
644
  /**
595
- * 水平精度,单位 m
645
+ * Horizontal accuracy, unit m
596
646
  * @since MapKit 3.0.5
597
647
  */
598
648
  horizontalAccuracy: number
599
649
  /**
600
- * 城市名称
650
+ * City name
601
651
  * @since MapKit 3.0.5
602
652
  */
603
653
  cityName: string
604
654
  /**
605
- * 街道名称
655
+ * Street name
606
656
  * @since MapKit 3.0.5
607
657
  */
608
658
  streetName: string
609
659
  /**
610
- * 位置名称,历史上iOS返回Array类型,建议使用formatAddress字段
660
+ * Location name, historically iOS returns an Array type, it is recommended to use the formatAddress field
611
661
  * @since MapKit 3.0.5
612
662
  */
613
663
  address: string
614
664
  /**
615
- * 格式化地址
665
+ * Formatted address
616
666
  * @since MapKit 3.6.0
617
667
  */
618
668
  formatAddress: string
619
669
  /**
620
- * 国家代码
670
+ * Country code
621
671
  * @since MapKit 3.1.0
622
672
  */
623
673
  countryCode: string
624
674
  /**
625
- * 邮政编码
675
+ * Postal code
626
676
  * @since MapKit 3.1.0
627
677
  */
628
678
  postalCode: string
629
679
  /**
630
- * 国家名称
680
+ * Country name
631
681
  * @since MapKit 3.1.1
632
682
  */
633
683
  countryName: string
634
684
  /**
635
- * 省份名称
685
+ * Province name
636
686
  * @since MapKit 3.1.1
637
687
  */
638
688
  province: string
639
689
  /**
640
- * 区县名称,二级区域名称
690
+ * District name, secondary region name
641
691
  * @since MapKit 3.1.1
642
692
  */
643
693
  district: string
644
694
  }) => void
645
- /** 接口调用失败的回调函数 */
695
+ /** fail 失败回调 */
646
696
  fail?: (params: {
647
697
  /** 错误信息 */
648
698
  errorMsg: string
@@ -659,58 +709,58 @@ declare namespace ty.map {
659
709
  }): void
660
710
 
661
711
  /**
662
- * 打开地图选择位置
712
+ * Open the map to select a location
663
713
  * @public
664
714
  * @since MapKit 1.0.6
665
715
  * @platform iOS Android
666
716
  */
667
717
  export function chooseLocation(params?: {
668
718
  /**
669
- * 目标纬度
719
+ * Target latitude
670
720
  * @since MapKit 1.0.6
671
721
  */
672
722
  latitude?: number
673
723
  /**
674
- * 目标经度
724
+ * Target longitude
675
725
  * @since MapKit 1.0.6
676
726
  */
677
727
  longitude?: number
678
728
  /**
679
- * 标题
729
+ * Title
680
730
  * @since MapKit 7.4.0
681
731
  */
682
732
  title?: string
683
733
  /**
684
- * 详细描述文本
734
+ * detailtext
685
735
  * @since MapKit 7.4.0
686
736
  */
687
737
  detailText?: string
688
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
738
+ /** complete 完成回调(成功、失败都会触发) */
689
739
  complete?: () => void
690
- /** 接口调用成功的回调函数 */
740
+ /** success 成功回调 */
691
741
  success?: (params: {
692
742
  /**
693
- * 位置名称
743
+ * Location name
694
744
  * @since MapKit 3.0.5
695
745
  */
696
746
  name: string
697
747
  /**
698
- * 详细地址
748
+ * Detailed address
699
749
  * @since MapKit 3.0.5
700
750
  */
701
751
  address: string
702
752
  /**
703
- * 纬度,浮点数,范围 -90~90,负数表示南纬。使用gcj02坐标系。
753
+ * Latitude, floating-point number, range -90~90, negative values indicate south latitude. Uses gcj02 coordinate system.
704
754
  * @since MapKit 3.0.5
705
755
  */
706
756
  latitude: number
707
757
  /**
708
- * 经度,浮点数,范围 -180~180,负数表示西经。使用gcj02坐标系。
758
+ * Longitude, floating-point number, range -180~180, negative values indicate west longitude. Uses gcj02 coordinate system.
709
759
  * @since MapKit 3.0.5
710
760
  */
711
761
  longitude: number
712
762
  }) => void
713
- /** 接口调用失败的回调函数 */
763
+ /** fail 失败回调 */
714
764
  fail?: (params: {
715
765
  /** 错误信息 */
716
766
  errorMsg: string
@@ -727,23 +777,23 @@ declare namespace ty.map {
727
777
  }): void
728
778
 
729
779
  /**
730
- * 获取可打开的第三方地图类型
780
+ * Get the types of third-party maps that can be opened
731
781
  * @public
732
782
  * @since MapKit 2.1.0
733
783
  * @platform iOS Android
734
784
  */
735
785
  export function getMapList(params?: {
736
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
786
+ /** complete 完成回调(成功、失败都会触发) */
737
787
  complete?: () => void
738
- /** 接口调用成功的回调函数 */
788
+ /** success 成功回调 */
739
789
  success?: (params: {
740
790
  /**
741
- * 支持的地图厂商,目前支持:BMK: 百度地图, MA: 高德地图, TENCENT: 腾讯地图, Google: 谷歌地图
791
+ * Supported map vendors, currently supports: BMK: Baidu Map, MA: Amap, TENCENT: Tencent Map, Google: Google Map
742
792
  * @since MapKit 3.0.5
743
793
  */
744
794
  maps: string[]
745
795
  }) => void
746
- /** 接口调用失败的回调函数 */
796
+ /** fail 失败回调 */
747
797
  fail?: (params: {
748
798
  /** 错误信息 */
749
799
  errorMsg: string
@@ -760,42 +810,42 @@ declare namespace ty.map {
760
810
  }): void
761
811
 
762
812
  /**
763
- * 使用第三方地图查看位置
813
+ * View location using a third-party map
764
814
  * @public
765
815
  * @since MapKit 2.1.0
766
816
  * @platform iOS Android
767
817
  */
768
818
  export function openMapAppLocation(params: {
769
819
  /**
770
- * 纬度,范围 -90~90,负数表示南纬
820
+ * Latitude, range -90~90, negative values indicate south latitude
771
821
  * @since MapKit 2.1.0
772
822
  */
773
823
  latitude: number
774
824
  /**
775
- * 经度,范围 -180~180,负数表示西经
825
+ * Longitude, range -180~180, negative values indicate west longitude
776
826
  * @since MapKit 2.1.0
777
827
  */
778
828
  longitude: number
779
829
  /**
780
- * 位置名称
830
+ * Location name
781
831
  * @since MapKit 2.1.0
782
832
  */
783
833
  name: string
784
834
  /**
785
- * 地址详细描述
835
+ * Detailed description of the address
786
836
  * @since MapKit 2.1.0
787
837
  */
788
838
  address: string
789
839
  /**
790
- * 地图类型,目前支持:BMK: 百度地图, MA: 高德地图, TENCENT: 腾讯地图, Google: 谷歌地图
840
+ * Map type, currently supports: BMK: Baidu Map, MA: Amap, TENCENT: Tencent Map, Google: Google Map
791
841
  * @since MapKit 2.1.0
792
842
  */
793
843
  mapType: string
794
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
844
+ /** complete 完成回调(成功、失败都会触发) */
795
845
  complete?: () => void
796
- /** 接口调用成功的回调函数 */
846
+ /** success 成功回调 */
797
847
  success?: (params: null) => void
798
- /** 接口调用失败的回调函数 */
848
+ /** fail 失败回调 */
799
849
  fail?: (params: {
800
850
  /** 错误信息 */
801
851
  errorMsg: string
@@ -812,37 +862,37 @@ declare namespace ty.map {
812
862
  }): void
813
863
 
814
864
  /**
815
- * 使用第三方地图应用打开地图并导航到指定位置
865
+ * Open the map and start navigation to a location using a third-party map application
816
866
  * @public
817
867
  * @since MapKit 7.4.0
818
868
  * @platform iOS Android
819
869
  */
820
870
  export function openMapNavigation(params: {
821
871
  /**
822
- * 起始位置
872
+ * Start location
823
873
  * @since MapKit 7.4.0
824
874
  */
825
- startLocation: LocationInfo
875
+ startLocation: LocationInfo_nRQM1e
826
876
  /**
827
- * 终点位置
877
+ * End location
828
878
  * @since MapKit 7.4.0
829
879
  */
830
- endLocation: LocationInfo
880
+ endLocation: LocationInfo_nRQM1e
831
881
  /**
832
- * 导航模式
833
- * @since MapKit 7.5.8
882
+ * Navigation mode
883
+ * @since MapKit 7.4.0
834
884
  */
835
885
  navigationMode: string
836
886
  /**
837
- * 地图类型,目前支持:BMK: 百度地图, MA: 高德地图, TENCENT: 腾讯地图, Google: 谷歌地图
887
+ * Map type, currently supports: BMK: Baidu Map, MA: Amap, TENCENT: Tencent Map, Google: Google Map
838
888
  * @since MapKit 7.4.0
839
889
  */
840
890
  mapType: string
841
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
891
+ /** complete 完成回调(成功、失败都会触发) */
842
892
  complete?: () => void
843
- /** 接口调用成功的回调函数 */
893
+ /** success 成功回调 */
844
894
  success?: (params: null) => void
845
- /** 接口调用失败的回调函数 */
895
+ /** fail 失败回调 */
846
896
  fail?: (params: {
847
897
  /** 错误信息 */
848
898
  errorMsg: string
@@ -859,88 +909,98 @@ declare namespace ty.map {
859
909
  }): void
860
910
 
861
911
  /**
862
- * 转换经纬度或地址
912
+ * Convert latitude and longitude or address
863
913
  * @public
864
914
  * @since MapKit 3.2.2
865
915
  * @platform iOS Android
866
916
  */
867
917
  export function transformLocation(params: {
868
918
  /**
869
- * wgs84返回GPS坐标,gcj02返回可用于openLocation的坐标
919
+ * wgs84 returns GPS coordinates, gcj02 returns coordinates usable for openLocation
870
920
  * @since MapKit 3.2.2
871
921
  */
872
922
  type: string
873
923
  /**
874
- * 纬度,范围 -90~90,负数表示南纬
924
+ * Latitude, range -90~90, negative values indicate south latitude
875
925
  * @since MapKit 3.2.2
876
926
  */
877
927
  latitude: number
878
928
  /**
879
- * 经度,范围 -180~180,负数表示西经
929
+ * Longitude, range -180~180, negative values indicate west longitude
880
930
  * @since MapKit 3.2.2
881
931
  */
882
932
  longitude: number
883
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
933
+ /** complete 完成回调(成功、失败都会触发) */
884
934
  complete?: () => void
885
- /** 接口调用成功的回调函数 */
935
+ /** success 成功回调 */
886
936
  success?: (params: {
887
937
  /**
888
- * 纬度,范围 -90~90,负数表示南纬
938
+ * Latitude, range -90~90, negative values indicate south latitude
889
939
  * @since MapKit 3.2.2
940
+ * @since MapKit 3.4.13
890
941
  */
891
942
  latitude: number
892
943
  /**
893
- * 经度,范围 -180~180,负数表示西经
944
+ * Longitude, range -180~180, negative values indicate west longitude
894
945
  * @since MapKit 3.2.2
946
+ * @since MapKit 3.4.13
895
947
  */
896
948
  longitude: number
897
949
  /**
898
- * 城市名称
950
+ * City name
899
951
  * @since MapKit 3.2.2
952
+ * @since MapKit 3.4.13
900
953
  */
901
954
  cityName: string
902
955
  /**
903
- * 街道名称
956
+ * Street name
904
957
  * @since MapKit 3.2.2
958
+ * @since MapKit 3.4.13
905
959
  */
906
960
  streetName: string
907
961
  /**
908
- * 位置名称,历史上iOS返回Array类型,建议使用formatAddress字段
962
+ * Location name, historically iOS returns an Array type, it is recommended to use the formatAddress field
909
963
  * @since MapKit 3.2.2
964
+ * @since MapKit 3.4.13
910
965
  */
911
966
  address: string
912
967
  /**
913
- * 格式化地址
968
+ * Formatted address
914
969
  * @since MapKit 3.6.0
915
970
  */
916
971
  formatAddress: string
917
972
  /**
918
- * 国家代码
973
+ * Country code
919
974
  * @since MapKit 3.2.2
975
+ * @since MapKit 3.4.13
920
976
  */
921
977
  countryCode: string
922
978
  /**
923
- * 邮政编码
979
+ * Postal code
924
980
  * @since MapKit 3.2.2
981
+ * @since MapKit 3.4.13
925
982
  */
926
983
  postalCode: string
927
984
  /**
928
- * 国家名称
985
+ * Country name
929
986
  * @since MapKit 3.2.2
987
+ * @since MapKit 3.4.13
930
988
  */
931
989
  countryName: string
932
990
  /**
933
- * 省份名称
991
+ * Province name
934
992
  * @since MapKit 3.2.2
993
+ * @since MapKit 3.4.13
935
994
  */
936
995
  province: string
937
996
  /**
938
- * 区县名称,二级区域名称
997
+ * District name, secondary region name
939
998
  * @since MapKit 3.2.2
999
+ * @since MapKit 3.4.13
940
1000
  */
941
1001
  district: string
942
1002
  }) => void
943
- /** 接口调用失败的回调函数 */
1003
+ /** fail 失败回调 */
944
1004
  fail?: (params: {
945
1005
  /** 错误信息 */
946
1006
  errorMsg: string
@@ -957,95 +1017,105 @@ declare namespace ty.map {
957
1017
  }): void
958
1018
 
959
1019
  /**
960
- * 将经纬度转换为具体地址
1020
+ * Convert latitude and longitude to a specific address
961
1021
  * @public
962
1022
  * @since MapKit 3.4.13
963
1023
  * @platform iOS Android
964
1024
  */
965
1025
  export function reverseGeocodeLocation(params: {
966
1026
  /**
967
- * 经度
1027
+ * Longitude
968
1028
  * @since MapKit 3.4.13
969
1029
  */
970
1030
  longitude: number
971
1031
  /**
972
- * 纬度
1032
+ * Latitude
973
1033
  * @since MapKit 3.4.13
974
1034
  */
975
1035
  latitude: number
976
1036
  /**
977
- * 请求坐标类型,wgs84返回GPS坐标,gcj02返回可用于openLocation的坐标,默认为wgs84
1037
+ * Request coordinate type, wgs84 returns GPS coordinates, gcj02 returns coordinates usable for openLocation, default is wgs84
978
1038
  * @since MapKit 3.4.13
979
1039
  * @defaultValue "wgs84"
980
1040
  */
981
1041
  requestType?: string
982
1042
  /**
983
- * 响应坐标类型,wgs84返回GPS坐标,gcj02返回可用于openLocation的坐标,默认为wgs84
1043
+ * Response coordinate type, wgs84 returns GPS coordinates, gcj02 returns coordinates usable for openLocation, default is wgs84
984
1044
  * @since MapKit 3.4.13
985
1045
  * @defaultValue "wgs84"
986
1046
  */
987
1047
  responseType?: string
988
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1048
+ /** complete 完成回调(成功、失败都会触发) */
989
1049
  complete?: () => void
990
- /** 接口调用成功的回调函数 */
1050
+ /** success 成功回调 */
991
1051
  success?: (params: {
992
1052
  /**
993
- * 纬度,范围 -90~90,负数表示南纬
1053
+ * Latitude, range -90~90, negative values indicate south latitude
1054
+ * @since MapKit 3.2.2
994
1055
  * @since MapKit 3.4.13
995
1056
  */
996
1057
  latitude: number
997
1058
  /**
998
- * 经度,范围 -180~180,负数表示西经
1059
+ * Longitude, range -180~180, negative values indicate west longitude
1060
+ * @since MapKit 3.2.2
999
1061
  * @since MapKit 3.4.13
1000
1062
  */
1001
1063
  longitude: number
1002
1064
  /**
1003
- * 城市名称
1065
+ * City name
1066
+ * @since MapKit 3.2.2
1004
1067
  * @since MapKit 3.4.13
1005
1068
  */
1006
1069
  cityName: string
1007
1070
  /**
1008
- * 街道名称
1071
+ * Street name
1072
+ * @since MapKit 3.2.2
1009
1073
  * @since MapKit 3.4.13
1010
1074
  */
1011
1075
  streetName: string
1012
1076
  /**
1013
- * 位置名称,历史上iOS返回Array类型,建议使用formatAddress字段
1077
+ * Location name, historically iOS returns an Array type, it is recommended to use the formatAddress field
1078
+ * @since MapKit 3.2.2
1014
1079
  * @since MapKit 3.4.13
1015
1080
  */
1016
1081
  address: string
1017
1082
  /**
1018
- * 格式化地址
1083
+ * Formatted address
1019
1084
  * @since MapKit 3.6.0
1020
1085
  */
1021
1086
  formatAddress: string
1022
1087
  /**
1023
- * 国家代码
1088
+ * Country code
1089
+ * @since MapKit 3.2.2
1024
1090
  * @since MapKit 3.4.13
1025
1091
  */
1026
1092
  countryCode: string
1027
1093
  /**
1028
- * 邮政编码
1094
+ * Postal code
1095
+ * @since MapKit 3.2.2
1029
1096
  * @since MapKit 3.4.13
1030
1097
  */
1031
1098
  postalCode: string
1032
1099
  /**
1033
- * 国家名称
1100
+ * Country name
1101
+ * @since MapKit 3.2.2
1034
1102
  * @since MapKit 3.4.13
1035
1103
  */
1036
1104
  countryName: string
1037
1105
  /**
1038
- * 省份名称
1106
+ * Province name
1107
+ * @since MapKit 3.2.2
1039
1108
  * @since MapKit 3.4.13
1040
1109
  */
1041
1110
  province: string
1042
1111
  /**
1043
- * 区县名称,二级区域名称
1112
+ * District name, secondary region name
1113
+ * @since MapKit 3.2.2
1044
1114
  * @since MapKit 3.4.13
1045
1115
  */
1046
1116
  district: string
1047
1117
  }) => void
1048
- /** 接口调用失败的回调函数 */
1118
+ /** fail 失败回调 */
1049
1119
  fail?: (params: {
1050
1120
  /** 错误信息 */
1051
1121
  errorMsg: string
@@ -1062,38 +1132,38 @@ declare namespace ty.map {
1062
1132
  }): void
1063
1133
 
1064
1134
  /**
1065
- * WGS84坐标系转换为GCJ02坐标系
1135
+ * Convert WGS84 coordinate system to GCJ02 coordinate system
1066
1136
  * @public
1067
1137
  * @since MapKit 3.4.13
1068
1138
  * @platform iOS Android
1069
1139
  */
1070
1140
  export function coordinateWGS84ToGCJ02(params: {
1071
1141
  /**
1072
- * 经度
1142
+ * Longitude
1073
1143
  * @since MapKit 3.4.13
1074
1144
  */
1075
1145
  longitude: number
1076
1146
  /**
1077
- * 纬度
1147
+ * Latitude
1078
1148
  * @since MapKit 3.4.13
1079
1149
  */
1080
1150
  latitude: number
1081
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1151
+ /** complete 完成回调(成功、失败都会触发) */
1082
1152
  complete?: () => void
1083
- /** 接口调用成功的回调函数 */
1153
+ /** success 成功回调 */
1084
1154
  success?: (params: {
1085
1155
  /**
1086
- * 经度
1156
+ * Longitude
1087
1157
  * @since MapKit 3.4.13
1088
1158
  */
1089
1159
  longitude: number
1090
1160
  /**
1091
- * 纬度
1161
+ * Latitude
1092
1162
  * @since MapKit 3.4.13
1093
1163
  */
1094
1164
  latitude: number
1095
1165
  }) => void
1096
- /** 接口调用失败的回调函数 */
1166
+ /** fail 失败回调 */
1097
1167
  fail?: (params: {
1098
1168
  /** 错误信息 */
1099
1169
  errorMsg: string
@@ -1110,38 +1180,38 @@ declare namespace ty.map {
1110
1180
  }): void
1111
1181
 
1112
1182
  /**
1113
- * GCJ02坐标系转换为WGS84坐标系
1183
+ * Convert GCJ02 coordinate system to WGS84 coordinate system
1114
1184
  * @public
1115
1185
  * @since MapKit 3.4.13
1116
1186
  * @platform iOS Android
1117
1187
  */
1118
1188
  export function coordinateGCJ02ToWGS84(params: {
1119
1189
  /**
1120
- * 经度
1190
+ * Longitude
1121
1191
  * @since MapKit 3.4.13
1122
1192
  */
1123
1193
  longitude: number
1124
1194
  /**
1125
- * 纬度
1195
+ * Latitude
1126
1196
  * @since MapKit 3.4.13
1127
1197
  */
1128
1198
  latitude: number
1129
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1199
+ /** complete 完成回调(成功、失败都会触发) */
1130
1200
  complete?: () => void
1131
- /** 接口调用成功的回调函数 */
1201
+ /** success 成功回调 */
1132
1202
  success?: (params: {
1133
1203
  /**
1134
- * 经度
1204
+ * Longitude
1135
1205
  * @since MapKit 3.4.13
1136
1206
  */
1137
1207
  longitude: number
1138
1208
  /**
1139
- * 纬度
1209
+ * Latitude
1140
1210
  * @since MapKit 3.4.13
1141
1211
  */
1142
1212
  latitude: number
1143
1213
  }) => void
1144
- /** 接口调用失败的回调函数 */
1214
+ /** fail 失败回调 */
1145
1215
  fail?: (params: {
1146
1216
  /** 错误信息 */
1147
1217
  errorMsg: string
@@ -1158,27 +1228,27 @@ declare namespace ty.map {
1158
1228
  }): void
1159
1229
 
1160
1230
  /**
1161
- * 获取当前地图类型
1162
- * huawei: 华为地图
1163
- * google: 谷歌地图
1164
- * amap: 高德地图
1165
- * apple: 苹果地图
1231
+ * Get the current map type
1232
+ * huawei: Huawei Map
1233
+ * google: Google Map
1234
+ * amap: Amap
1235
+ * apple: Apple Map
1166
1236
  * @public
1167
1237
  * @since MapKit 3.4.13
1168
1238
  * @platform iOS Android
1169
1239
  */
1170
1240
  export function getMapType(params?: {
1171
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1241
+ /** complete 完成回调(成功、失败都会触发) */
1172
1242
  complete?: () => void
1173
- /** 接口调用成功的回调函数 */
1243
+ /** success 成功回调 */
1174
1244
  success?: (params: {
1175
1245
  /**
1176
- * 地图类型
1246
+ * Map type
1177
1247
  * @since MapKit 3.4.13
1178
1248
  */
1179
1249
  type: string
1180
1250
  }) => void
1181
- /** 接口调用失败的回调函数 */
1251
+ /** fail 失败回调 */
1182
1252
  fail?: (params: {
1183
1253
  /** 错误信息 */
1184
1254
  errorMsg: string
@@ -1232,12 +1302,12 @@ declare namespace ty.map {
1232
1302
  * 搜索中心点经纬度、搜索范围(IOS ONLY)设置
1233
1303
  * @since MapKit 3.4.16
1234
1304
  */
1235
- region: CoordinateRegion
1236
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1305
+ region: CoordinateRegion_vXpu3d
1306
+ /** complete 完成回调(成功、失败都会触发) */
1237
1307
  complete?: () => void
1238
- /** 接口调用成功的回调函数 */
1239
- success?: (params: AddressInfo[]) => void
1240
- /** 接口调用失败的回调函数 */
1308
+ /** success 成功回调 */
1309
+ success?: (params: AddressInfo_aEXhSQ[]) => void
1310
+ /** fail 失败回调 */
1241
1311
  fail?: (params: {
1242
1312
  /** 错误信息 */
1243
1313
  errorMsg: string
@@ -1279,10 +1349,10 @@ declare namespace ty.map {
1279
1349
  * 当前地址经纬度坐标
1280
1350
  * @since MapKit 3.4.16
1281
1351
  */
1282
- coordinate2D: LocationCoordinate2D
1283
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1352
+ coordinate2D: LocationCoordinate2D_kSVBLa
1353
+ /** complete 完成回调(成功、失败都会触发) */
1284
1354
  complete?: () => void
1285
- /** 接口调用成功的回调函数 */
1355
+ /** success 成功回调 */
1286
1356
  success?: (params: {
1287
1357
  /**
1288
1358
  * 地址 POI ID
@@ -1303,9 +1373,9 @@ declare namespace ty.map {
1303
1373
  * 当前地址经纬度坐标
1304
1374
  * @since MapKit 3.4.16
1305
1375
  */
1306
- coordinate2D: LocationCoordinate2D
1376
+ coordinate2D: LocationCoordinate2D_kSVBLa
1307
1377
  }) => void
1308
- /** 接口调用失败的回调函数 */
1378
+ /** fail 失败回调 */
1309
1379
  fail?: (params: {
1310
1380
  /** 错误信息 */
1311
1381
  errorMsg: string
@@ -1321,32 +1391,30 @@ declare namespace ty.map {
1321
1391
  }) => void
1322
1392
  }): void
1323
1393
 
1324
- /** @since MapKit 2.2.1 */
1325
- export interface DiffLayerMap {
1394
+ export interface DiffLayerMap_MZCWiS {
1326
1395
  /**
1327
- * 当前组件类型
1328
- * @since MapKit 2.2.1
1396
+ * current component type
1329
1397
  * @defaultValue 0
1330
1398
  */
1331
1399
  type?: number
1332
1400
  }
1333
1401
 
1334
- /** @since MapKit 3.9.1 */
1335
- export interface GeofenceBusinessInfo {
1402
+ export interface GeofenceBusinessInfo_oii5Sn {
1336
1403
  /**
1337
1404
  * 区分不同的地理围栏业务。空数据时默认为场景类型地理围栏 GeofenceBusinessType.Scene。
1338
1405
  * @since MapKit 3.9.1
1406
+ * @since MapKit 3.9.8
1339
1407
  */
1340
1408
  businessType?: string
1341
1409
  /**
1342
1410
  * 该业务类型的附加数据
1343
1411
  * @since MapKit 3.9.1
1412
+ * @since MapKit 3.9.8
1344
1413
  */
1345
1414
  businessData?: Record<string, any>
1346
1415
  }
1347
1416
 
1348
- /** @since MapKit 3.9.1 */
1349
- export interface IsGeofenceSupportResponse {
1417
+ export interface IsGeofenceSupportResponse_6VKK7o {
1350
1418
  /**
1351
1419
  * 是否支持地理围栏
1352
1420
  * @since MapKit 3.9.1
@@ -1355,44 +1423,53 @@ declare namespace ty.map {
1355
1423
  isSupport?: boolean
1356
1424
  }
1357
1425
 
1358
- /** @since MapKit 3.0.1 */
1359
- export interface IsGeofenceReachLimitResponse {
1426
+ export interface IsGeofenceReachLimitResponse_4XVxKw {
1360
1427
  /**
1361
1428
  * 地理围栏是否达到上限
1362
- * @since MapKit 3.0.1
1429
+ * @since MapKit 3.9.1
1430
+ * @since MapKit 3.0.5
1363
1431
  * @defaultValue false
1364
1432
  */
1365
1433
  reachLimit?: boolean
1366
1434
  }
1367
1435
 
1368
- /** @since MapKit 3.0.1 */
1369
- export interface GeofenceInfo {
1436
+ export interface GeofenceInfo_lkV0Od {
1370
1437
  /**
1371
1438
  * 地理围栏名称
1372
1439
  * @since MapKit 3.9.1
1440
+ * @since MapKit 3.9.8
1441
+ * @since MapKit 2.5.0
1373
1442
  */
1374
1443
  geoTitle?: string
1375
1444
  /**
1376
1445
  * 经度
1377
1446
  * @since MapKit 3.9.1
1447
+ * @since MapKit 3.9.8
1448
+ * @since MapKit 2.5.0
1378
1449
  * @defaultValue 0.0
1379
1450
  */
1380
1451
  longitude?: number
1381
1452
  /**
1382
1453
  * 纬度
1383
1454
  * @since MapKit 3.9.1
1455
+ * @since MapKit 3.9.8
1456
+ * @since MapKit 2.5.0
1384
1457
  * @defaultValue 0.0
1385
1458
  */
1386
1459
  latitude?: number
1387
1460
  /**
1388
1461
  * 半径
1389
1462
  * @since MapKit 3.9.1
1463
+ * @since MapKit 3.9.8
1464
+ * @since MapKit 2.5.0
1390
1465
  * @defaultValue 0
1391
1466
  */
1392
1467
  radius?: number
1393
1468
  /**
1394
1469
  * id
1395
1470
  * @since MapKit 3.9.1
1471
+ * @since MapKit 3.9.8
1472
+ * @since MapKit 2.5.0
1396
1473
  */
1397
1474
  geofenceId?: string
1398
1475
  /**
@@ -1400,27 +1477,29 @@ declare namespace ty.map {
1400
1477
  * 0:进度地理围栏
1401
1478
  * 1:离开地理围栏
1402
1479
  * @since MapKit 3.9.1
1480
+ * @since MapKit 3.9.8
1481
+ * @since MapKit 2.5.0
1403
1482
  * @defaultValue 0
1404
1483
  */
1405
1484
  type?: number
1406
1485
  }
1407
1486
 
1408
- /** @since MapKit 3.9.1 */
1409
- export interface Geofence {
1487
+ export interface Geofence_ytOJiA {
1410
1488
  /**
1411
1489
  * 区分不同的地理围栏业务。空数据时默认为场景类型地理围栏 GeofenceBusinessType.Scene。
1412
1490
  * @since MapKit 3.9.1
1491
+ * @since MapKit 3.9.8
1413
1492
  */
1414
- businessInfo?: GeofenceBusinessInfo
1493
+ businessInfo?: GeofenceBusinessInfo_oii5Sn
1415
1494
  /**
1416
1495
  * 地理围栏信息
1417
1496
  * @since MapKit 3.9.1
1497
+ * @since MapKit 3.9.8
1418
1498
  */
1419
- info: GeofenceInfo
1499
+ info: GeofenceInfo_lkV0Od
1420
1500
  }
1421
1501
 
1422
- /** @since MapKit 3.9.1 */
1423
- export interface OpenMapResponse {
1502
+ export interface OpenMapResponse_kHqQmW {
1424
1503
  /**
1425
1504
  * 取消保存地理围栏
1426
1505
  * @since MapKit 3.9.1
@@ -1431,475 +1510,595 @@ declare namespace ty.map {
1431
1510
  * 地理围栏信息
1432
1511
  * @since MapKit 3.9.1
1433
1512
  */
1434
- geofenceInfo: GeofenceInfo
1513
+ geofenceInfo: GeofenceInfo_lkV0Od
1435
1514
  }
1436
1515
 
1437
- /** @since MapKit 3.0.1 */
1438
- export interface UpdateGeofenceParams {
1516
+ export interface UpdateGeofenceParams_5uxu8O {
1439
1517
  /**
1440
1518
  * 注册的地理围栏
1441
- * @since MapKit 3.0.1
1519
+ * @since MapKit 2.5.0
1442
1520
  */
1443
- registerGeoFence: GeofenceInfo[]
1521
+ registerGeoFence: GeofenceInfo_lkV0Od[]
1444
1522
  /**
1445
1523
  * 取消的地理围栏
1446
- * @since MapKit 3.0.1
1524
+ * @since MapKit 2.5.0
1447
1525
  */
1448
- unregisterGeoFence: GeofenceInfo[]
1526
+ unregisterGeoFence: GeofenceInfo_lkV0Od[]
1449
1527
  }
1450
1528
 
1451
- /** @since MapKit 3.0.1 */
1452
- export interface UpdateGeofenceResponse {
1529
+ export interface UpdateGeofenceResponse_ucoh6t {
1453
1530
  /**
1454
1531
  * 更新成功
1455
- * @since MapKit 3.0.1
1532
+ * @since MapKit 3.0.5
1456
1533
  * @defaultValue false
1457
1534
  */
1458
1535
  success?: boolean
1459
1536
  }
1460
1537
 
1461
- /** @since MapKit 3.0.1 */
1462
- export interface SupportGeofenceResponse {
1538
+ /** 地理围栏相关API */
1539
+ export interface TTTPlugin_4qQSEG {
1540
+ /** 是否开启地理围栏功能,与 NG 配置是否开启有关 */
1541
+ isSupport: (
1542
+ params: GeofenceBusinessInfo_oii5Sn,
1543
+ success: SuccessCb_T5hXPD<IsGeofenceSupportResponse_6VKK7o>,
1544
+ fail: FailureCb_mMWysM
1545
+ ) => void
1546
+ /** 地理围栏是否达到上限,不同手机系统限制数量不一样 */
1547
+ isReachLimit: (
1548
+ params: GeofenceBusinessInfo_oii5Sn,
1549
+ success: SuccessCb_e7KCrN<IsGeofenceReachLimitResponse_4XVxKw>,
1550
+ fail: FailureCb_mMWysM
1551
+ ) => void
1552
+ /**
1553
+ * 打开地理围栏地图页面,获取地理围栏信息(新建或者编辑地理围栏)
1554
+ * 权限: [scope.userLocationBackground] 没有权限时本方法会引导申请权限
1555
+ */
1556
+ openMap: (
1557
+ params: Geofence_ytOJiA,
1558
+ success: SuccessCb_SDfNWy<OpenMapResponse_kHqQmW>,
1559
+ fail: FailureCb_mMWysM
1560
+ ) => void
1561
+ /** 注册地理围栏。当编辑地理围栏时,需要先 unregister 旧的地理围栏,再 register 新的地理围栏 */
1562
+ register: (
1563
+ params: Geofence_ytOJiA,
1564
+ success: SuccessCb_kavHEj<null>,
1565
+ fail: FailureCb_mMWysM
1566
+ ) => void
1567
+ /** 取消地理围栏 */
1568
+ unregister: (
1569
+ params: Geofence_ytOJiA,
1570
+ success: SuccessCb_kavHEj<null>,
1571
+ fail: FailureCb_mMWysM
1572
+ ) => void
1573
+ /** 更新地理围栏状态 */
1574
+ changeGeofenceStatus: (
1575
+ params: Geofence_ytOJiA,
1576
+ success: SuccessCb_kavHEj<null>,
1577
+ fail: FailureCb_mMWysM
1578
+ ) => void
1579
+ /**
1580
+ * 取消地理围栏
1581
+ * 权限: [scope.location]
1582
+ * @deprecated unregister
1583
+ */
1584
+ unregisterGeofence: (
1585
+ params: GeofenceInfo_lkV0Od,
1586
+ success: SuccessCb_kavHEj<null>,
1587
+ fail: FailureCb_mMWysM
1588
+ ) => void
1589
+ /**
1590
+ * 地理围栏是否达到上限
1591
+ * 权限: [scope.location]
1592
+ * @deprecated isReachLimit
1593
+ */
1594
+ isGeofenceReachLimit: (
1595
+ success: SuccessCb_e7KCrN<IsGeofenceReachLimitResponse_4XVxKw>,
1596
+ fail: FailureCb_mMWysM
1597
+ ) => void
1598
+ /**
1599
+ * 更新地理围栏
1600
+ * 权限: [scope.location]
1601
+ * @deprecated register
1602
+ */
1603
+ updateGeofence: (
1604
+ params: UpdateGeofenceParams_5uxu8O,
1605
+ success: SuccessCb_IjTKqo<UpdateGeofenceResponse_ucoh6t>,
1606
+ fail: FailureCb_mMWysM
1607
+ ) => void
1608
+ /**
1609
+ * 注册地理围栏
1610
+ * 权限: [scope.location]
1611
+ * @deprecated register
1612
+ */
1613
+ registerGeofence: (
1614
+ params: GeofenceInfo_lkV0Od,
1615
+ success: SuccessCb_kavHEj<null>,
1616
+ fail: FailureCb_mMWysM
1617
+ ) => void
1618
+ /**
1619
+ * 打开地理围栏地图页面,获取地理围栏信息(新建或者编辑地理围栏)
1620
+ * 权限: [scope.location]
1621
+ * @deprecated openMap
1622
+ */
1623
+ openGeofenceMap: (
1624
+ params: GeofenceInfo_lkV0Od,
1625
+ success: SuccessCb_kavHEj<null>,
1626
+ fail: FailureCb_mMWysM
1627
+ ) => void
1628
+ }
1629
+
1630
+ export interface SupportGeofenceResponse_6oTLjU {
1463
1631
  /**
1464
1632
  * 是否支持地理围栏
1465
- * @since MapKit 3.0.1
1466
1633
  * @defaultValue false
1467
1634
  */
1468
1635
  isSupport?: boolean
1469
1636
  }
1470
1637
 
1471
- /** @since MapKit 3.9.8 */
1472
- export enum GeofenceBusinessType {
1473
- /**
1474
- * 场景类型地理围栏
1475
- * @since MapKit 3.9.8
1476
- */
1638
+ export enum GeofenceBusinessType_PG1Xhx {
1639
+ /** 场景类型地理围栏 */
1477
1640
  Scene = "scene",
1478
1641
 
1479
- /**
1480
- * 门锁场景地理围栏
1481
- * @since MapKit 3.9.8
1482
- */
1642
+ /** 门锁场景地理围栏 */
1483
1643
  BleLockScene = "bleLockScene",
1484
1644
  }
1485
1645
 
1486
- /** @since MapKit 1.0.6 */
1487
- export interface LocationBean {
1646
+ export interface LocationBean_7P4YQ0 {
1488
1647
  /**
1489
- * wgs84返回GPS坐标,gcj02返回可用于openLocation的坐标
1648
+ * wgs84 returns GPS coordinates, gcj02 returns coordinates usable for openLocation
1490
1649
  * @since MapKit 1.0.6
1491
1650
  */
1492
1651
  type: string
1493
1652
  /**
1494
- * 传入true会返回高度信息。由于获取高度需要较高精度,会减慢接口响应速度。
1653
+ * Pass true to return altitude information. Since obtaining altitude requires high precision, it will slow down the interface response speed.
1495
1654
  * @since MapKit 1.0.6
1496
1655
  */
1497
1656
  altitude: boolean
1498
1657
  /**
1499
- * 开启高精度定位
1658
+ * Enable high-accuracy positioning
1500
1659
  * @since MapKit 1.0.6
1501
1660
  */
1502
1661
  isHighAccuracy: boolean
1503
1662
  /**
1504
- * 高精度定位超时时间(ms)。指定时间内返回最高精度,该值3000ms以上高精度定位才有效果。
1663
+ * High-accuracy positioning timeout (ms). Returns the highest accuracy within the specified time. This value must be above 3000ms for high-accuracy positioning to be effective.
1505
1664
  * @since MapKit 1.0.6
1506
1665
  */
1507
1666
  highAccuracyExpireTime: number
1508
1667
  }
1509
1668
 
1510
- /** @since MapKit 1.0.6 */
1511
- export interface LocationCB {
1669
+ export interface LocationCB_G6oXOe {
1512
1670
  /**
1513
- * 纬度,范围 -90~90,负数表示南纬
1514
- * @since MapKit 1.0.6
1671
+ * Latitude, range -90~90, negative values indicate south latitude
1672
+ * @since MapKit 3.0.5
1515
1673
  */
1516
1674
  latitude: number
1517
1675
  /**
1518
- * 经度,范围 -180~180,负数表示西经
1519
- * @since MapKit 1.0.6
1676
+ * Longitude, range -180~180, negative values indicate west longitude
1677
+ * @since MapKit 3.0.5
1520
1678
  */
1521
1679
  longitude: number
1522
1680
  /**
1523
- * 速度,单位 m/s
1524
- * @since MapKit 1.0.6
1681
+ * Speed, unit m/s
1682
+ * @since MapKit 3.0.5
1525
1683
  */
1526
1684
  speed: number
1527
1685
  /**
1528
- * 定位精度
1529
- * @since MapKit 1.0.6
1686
+ * Accuracy of the location
1687
+ * @since MapKit 3.0.5
1530
1688
  */
1531
1689
  accuracy: number
1532
1690
  /**
1533
- * 海拔,单位 m
1534
- * @since MapKit 1.0.6
1691
+ * Altitude, unit m
1692
+ * @since MapKit 3.0.5
1535
1693
  */
1536
1694
  altitude: number
1537
1695
  /**
1538
- * 垂直精度,单位 mAndroid无法获取,返回0
1539
- * @since MapKit 1.0.6
1696
+ * Vertical accuracy, unit m (Android cannot obtain this, returns 0)
1697
+ * @since MapKit 3.0.5
1540
1698
  */
1541
1699
  verticalAccuracy: number
1542
1700
  /**
1543
- * 水平精度,单位 m
1544
- * @since MapKit 1.0.6
1701
+ * Horizontal accuracy, unit m
1702
+ * @since MapKit 3.0.5
1545
1703
  */
1546
1704
  horizontalAccuracy: number
1547
1705
  /**
1548
- * 城市名称
1549
- * @since MapKit 3.0.4
1706
+ * City name
1707
+ * @since MapKit 3.0.5
1550
1708
  */
1551
1709
  cityName: string
1552
1710
  /**
1553
- * 街道名称
1554
- * @since MapKit 3.0.4
1711
+ * Street name
1712
+ * @since MapKit 3.0.5
1555
1713
  */
1556
1714
  streetName: string
1557
1715
  /**
1558
- * 位置名称,历史上iOS返回Array类型,建议使用formatAddress字段
1559
- * @since MapKit 3.0.4
1716
+ * Location name, historically iOS returns an Array type, it is recommended to use the formatAddress field
1717
+ * @since MapKit 3.0.5
1560
1718
  */
1561
1719
  address: string
1562
1720
  /**
1563
- * 格式化地址
1721
+ * Formatted address
1564
1722
  * @since MapKit 3.6.0
1565
1723
  */
1566
1724
  formatAddress: string
1567
1725
  /**
1568
- * 国家代码
1726
+ * Country code
1569
1727
  * @since MapKit 3.1.0
1570
1728
  */
1571
1729
  countryCode: string
1572
1730
  /**
1573
- * 邮政编码
1731
+ * Postal code
1574
1732
  * @since MapKit 3.1.0
1575
1733
  */
1576
1734
  postalCode: string
1577
1735
  /**
1578
- * 国家名称
1736
+ * Country name
1579
1737
  * @since MapKit 3.1.1
1580
1738
  */
1581
1739
  countryName: string
1582
1740
  /**
1583
- * 省份名称
1741
+ * Province name
1584
1742
  * @since MapKit 3.1.1
1585
1743
  */
1586
1744
  province: string
1587
1745
  /**
1588
- * 区县名称,二级区域名称
1746
+ * District name, secondary region name
1589
1747
  * @since MapKit 3.1.1
1590
1748
  */
1591
1749
  district: string
1592
1750
  }
1593
1751
 
1594
- /** @since MapKit 1.0.6 */
1595
- export interface ChooseBean {
1752
+ export interface ChooseBean_ujFaL4 {
1596
1753
  /**
1597
- * 目标纬度
1754
+ * Target latitude
1598
1755
  * @since MapKit 1.0.6
1599
1756
  */
1600
1757
  latitude?: number
1601
1758
  /**
1602
- * 目标经度
1759
+ * Target longitude
1603
1760
  * @since MapKit 1.0.6
1604
1761
  */
1605
1762
  longitude?: number
1606
1763
  /**
1607
- * 标题
1764
+ * Title
1608
1765
  * @since MapKit 7.4.0
1609
1766
  */
1610
1767
  title?: string
1611
1768
  /**
1612
- * 详细描述文本
1769
+ * detailtext
1613
1770
  * @since MapKit 7.4.0
1614
1771
  */
1615
1772
  detailText?: string
1616
1773
  }
1617
1774
 
1618
- /** @since MapKit 1.0.6 */
1619
- export interface ChooseCB {
1775
+ export interface ChooseCB_ffwl4r {
1620
1776
  /**
1621
- * 位置名称
1622
- * @since MapKit 1.0.6
1777
+ * Location name
1778
+ * @since MapKit 3.0.5
1623
1779
  */
1624
1780
  name: string
1625
1781
  /**
1626
- * 详细地址
1627
- * @since MapKit 1.0.6
1782
+ * Detailed address
1783
+ * @since MapKit 3.0.5
1628
1784
  */
1629
1785
  address: string
1630
1786
  /**
1631
- * 纬度,浮点数,范围 -90~90,负数表示南纬。使用gcj02坐标系。
1632
- * @since MapKit 1.0.6
1787
+ * Latitude, floating-point number, range -90~90, negative values indicate south latitude. Uses gcj02 coordinate system.
1788
+ * @since MapKit 3.0.5
1633
1789
  */
1634
1790
  latitude: number
1635
1791
  /**
1636
- * 经度,浮点数,范围 -180~180,负数表示西经。使用gcj02坐标系。
1637
- * @since MapKit 1.0.6
1792
+ * Longitude, floating-point number, range -180~180, negative values indicate west longitude. Uses gcj02 coordinate system.
1793
+ * @since MapKit 3.0.5
1638
1794
  */
1639
1795
  longitude: number
1640
1796
  }
1641
1797
 
1642
- /** @since MapKit 2.1.0 */
1643
- export interface MapsBean {
1798
+ export interface MapsBean_R85qWb {
1644
1799
  /**
1645
- * 支持的地图厂商,目前支持:BMK: 百度地图, MA: 高德地图, TENCENT: 腾讯地图, Google: 谷歌地图
1646
- * @since MapKit 2.1.0
1800
+ * Supported map vendors, currently supports: BMK: Baidu Map, MA: Amap, TENCENT: Tencent Map, Google: Google Map
1801
+ * @since MapKit 3.0.5
1647
1802
  */
1648
1803
  maps: string[]
1649
1804
  }
1650
1805
 
1651
- /** @since MapKit 2.1.0 */
1652
- export interface OpenMapAppBean {
1806
+ export interface OpenMapAppBean_IBaGrJ {
1653
1807
  /**
1654
- * 纬度,范围 -90~90,负数表示南纬
1808
+ * Latitude, range -90~90, negative values indicate south latitude
1655
1809
  * @since MapKit 2.1.0
1656
1810
  */
1657
1811
  latitude: number
1658
1812
  /**
1659
- * 经度,范围 -180~180,负数表示西经
1813
+ * Longitude, range -180~180, negative values indicate west longitude
1660
1814
  * @since MapKit 2.1.0
1661
1815
  */
1662
1816
  longitude: number
1663
1817
  /**
1664
- * 位置名称
1818
+ * Location name
1665
1819
  * @since MapKit 2.1.0
1666
1820
  */
1667
1821
  name: string
1668
1822
  /**
1669
- * 地址详细描述
1823
+ * Detailed description of the address
1670
1824
  * @since MapKit 2.1.0
1671
1825
  */
1672
1826
  address: string
1673
1827
  /**
1674
- * 地图类型,目前支持:BMK: 百度地图, MA: 高德地图, TENCENT: 腾讯地图, Google: 谷歌地图
1828
+ * Map type, currently supports: BMK: Baidu Map, MA: Amap, TENCENT: Tencent Map, Google: Google Map
1675
1829
  * @since MapKit 2.1.0
1676
1830
  */
1677
1831
  mapType: string
1678
1832
  }
1679
1833
 
1680
- /**
1681
- * 位置信息
1682
- * @since MapKit 7.4.0
1683
- */
1684
- export interface LocationInfo {
1834
+ /** Location information */
1835
+ export interface LocationInfo_nRQM1e {
1685
1836
  /**
1686
- * 纬度,范围 -90~90,负数表示南纬
1837
+ * Latitude, range -90~90, negative values indicate south latitude
1687
1838
  * @since MapKit 7.4.0
1688
1839
  */
1689
1840
  latitude: number
1690
1841
  /**
1691
- * 经度,范围 -180~180,负数表示西经
1842
+ * Longitude, range -180~180, negative values indicate west longitude
1692
1843
  * @since MapKit 7.4.0
1693
1844
  */
1694
1845
  longitude: number
1695
1846
  /**
1696
- * 当前点位置名称
1847
+ * The name of the current point location
1697
1848
  * @since MapKit 7.4.0
1698
1849
  */
1699
1850
  addressName: string
1700
1851
  }
1701
1852
 
1702
- /**
1703
- * 使用第三方地图应用打开地图并导航到指定位置
1704
- * @since MapKit 7.4.0
1705
- */
1706
- export interface OpenMapNavigationBean {
1853
+ /** Open the map and start navigation to a location using a third-party map application */
1854
+ export interface OpenMapNavigationBean_yjAelP {
1707
1855
  /**
1708
- * 起始位置
1856
+ * Start location
1709
1857
  * @since MapKit 7.4.0
1710
1858
  */
1711
- startLocation: LocationInfo
1859
+ startLocation: LocationInfo_nRQM1e
1712
1860
  /**
1713
- * 终点位置
1861
+ * End location
1714
1862
  * @since MapKit 7.4.0
1715
1863
  */
1716
- endLocation: LocationInfo
1864
+ endLocation: LocationInfo_nRQM1e
1717
1865
  /**
1718
- * 导航模式
1719
- * @since MapKit 7.5.8
1866
+ * Navigation mode
1867
+ * @since MapKit 7.4.0
1720
1868
  */
1721
1869
  navigationMode: string
1722
1870
  /**
1723
- * 地图类型,目前支持:BMK: 百度地图, MA: 高德地图, TENCENT: 腾讯地图, Google: 谷歌地图
1871
+ * Map type, currently supports: BMK: Baidu Map, MA: Amap, TENCENT: Tencent Map, Google: Google Map
1724
1872
  * @since MapKit 7.4.0
1725
1873
  */
1726
1874
  mapType: string
1727
1875
  }
1728
1876
 
1729
- /** @since MapKit 3.2.2 */
1730
- export interface TransformLocationReq {
1877
+ export interface TransformLocationReq_Gp1PbH {
1731
1878
  /**
1732
- * wgs84返回GPS坐标,gcj02返回可用于openLocation的坐标
1879
+ * wgs84 returns GPS coordinates, gcj02 returns coordinates usable for openLocation
1733
1880
  * @since MapKit 3.2.2
1734
1881
  */
1735
1882
  type: string
1736
1883
  /**
1737
- * 纬度,范围 -90~90,负数表示南纬
1884
+ * Latitude, range -90~90, negative values indicate south latitude
1738
1885
  * @since MapKit 3.2.2
1739
1886
  */
1740
1887
  latitude: number
1741
1888
  /**
1742
- * 经度,范围 -180~180,负数表示西经
1889
+ * Longitude, range -180~180, negative values indicate west longitude
1743
1890
  * @since MapKit 3.2.2
1744
1891
  */
1745
1892
  longitude: number
1746
1893
  }
1747
1894
 
1748
- /** @since MapKit 3.2.2 */
1749
- export interface TransformLocationResp {
1895
+ export interface TransformLocationResp_KRpAMY {
1750
1896
  /**
1751
- * 纬度,范围 -90~90,负数表示南纬
1897
+ * Latitude, range -90~90, negative values indicate south latitude
1752
1898
  * @since MapKit 3.2.2
1899
+ * @since MapKit 3.4.13
1753
1900
  */
1754
1901
  latitude: number
1755
1902
  /**
1756
- * 经度,范围 -180~180,负数表示西经
1903
+ * Longitude, range -180~180, negative values indicate west longitude
1757
1904
  * @since MapKit 3.2.2
1905
+ * @since MapKit 3.4.13
1758
1906
  */
1759
1907
  longitude: number
1760
1908
  /**
1761
- * 城市名称
1909
+ * City name
1762
1910
  * @since MapKit 3.2.2
1911
+ * @since MapKit 3.4.13
1763
1912
  */
1764
1913
  cityName: string
1765
1914
  /**
1766
- * 街道名称
1915
+ * Street name
1767
1916
  * @since MapKit 3.2.2
1917
+ * @since MapKit 3.4.13
1768
1918
  */
1769
1919
  streetName: string
1770
1920
  /**
1771
- * 位置名称,历史上iOS返回Array类型,建议使用formatAddress字段
1921
+ * Location name, historically iOS returns an Array type, it is recommended to use the formatAddress field
1772
1922
  * @since MapKit 3.2.2
1923
+ * @since MapKit 3.4.13
1773
1924
  */
1774
1925
  address: string
1775
1926
  /**
1776
- * 格式化地址
1927
+ * Formatted address
1777
1928
  * @since MapKit 3.6.0
1778
1929
  */
1779
1930
  formatAddress: string
1780
1931
  /**
1781
- * 国家代码
1932
+ * Country code
1782
1933
  * @since MapKit 3.2.2
1934
+ * @since MapKit 3.4.13
1783
1935
  */
1784
1936
  countryCode: string
1785
1937
  /**
1786
- * 邮政编码
1938
+ * Postal code
1787
1939
  * @since MapKit 3.2.2
1940
+ * @since MapKit 3.4.13
1788
1941
  */
1789
1942
  postalCode: string
1790
1943
  /**
1791
- * 国家名称
1944
+ * Country name
1792
1945
  * @since MapKit 3.2.2
1946
+ * @since MapKit 3.4.13
1793
1947
  */
1794
1948
  countryName: string
1795
1949
  /**
1796
- * 省份名称
1950
+ * Province name
1797
1951
  * @since MapKit 3.2.2
1952
+ * @since MapKit 3.4.13
1798
1953
  */
1799
1954
  province: string
1800
1955
  /**
1801
- * 区县名称,二级区域名称
1956
+ * District name, secondary region name
1802
1957
  * @since MapKit 3.2.2
1958
+ * @since MapKit 3.4.13
1803
1959
  */
1804
1960
  district: string
1805
1961
  }
1806
1962
 
1807
- /** @since MapKit 3.4.13 */
1808
- export interface ReverseGeocodeLocationReq {
1963
+ export interface ReverseGeocodeLocationReq_pGlnaJ {
1809
1964
  /**
1810
- * 经度
1965
+ * Longitude
1811
1966
  * @since MapKit 3.4.13
1812
1967
  */
1813
1968
  longitude: number
1814
1969
  /**
1815
- * 纬度
1970
+ * Latitude
1816
1971
  * @since MapKit 3.4.13
1817
1972
  */
1818
1973
  latitude: number
1819
1974
  /**
1820
- * 请求坐标类型,wgs84返回GPS坐标,gcj02返回可用于openLocation的坐标,默认为wgs84
1975
+ * Request coordinate type, wgs84 returns GPS coordinates, gcj02 returns coordinates usable for openLocation, default is wgs84
1821
1976
  * @since MapKit 3.4.13
1822
1977
  * @defaultValue "wgs84"
1823
1978
  */
1824
1979
  requestType?: string
1825
1980
  /**
1826
- * 响应坐标类型,wgs84返回GPS坐标,gcj02返回可用于openLocation的坐标,默认为wgs84
1981
+ * Response coordinate type, wgs84 returns GPS coordinates, gcj02 returns coordinates usable for openLocation, default is wgs84
1827
1982
  * @since MapKit 3.4.13
1828
1983
  * @defaultValue "wgs84"
1829
1984
  */
1830
1985
  responseType?: string
1831
1986
  }
1832
1987
 
1833
- /** @since MapKit 3.4.13 */
1834
- export interface Coordinate {
1988
+ export interface Coordinate_DMuxtb {
1835
1989
  /**
1836
- * 经度
1990
+ * Longitude
1837
1991
  * @since MapKit 3.4.13
1838
1992
  */
1839
1993
  longitude: number
1840
1994
  /**
1841
- * 纬度
1995
+ * Latitude
1842
1996
  * @since MapKit 3.4.13
1843
1997
  */
1844
1998
  latitude: number
1845
1999
  }
1846
2000
 
1847
- /** @since MapKit 3.4.13 */
1848
- export interface MapTypeBean {
2001
+ export interface MapTypeBean_Obunxh {
1849
2002
  /**
1850
- * 地图类型
2003
+ * Map type
1851
2004
  * @since MapKit 3.4.13
1852
2005
  */
1853
2006
  type: string
1854
2007
  }
1855
2008
 
1856
- /** @since MapKit 1.0.6 */
1857
- export interface LocationError {
1858
- /**
1859
- * 定位错误码
1860
- * @since MapKit 1.0.6
1861
- */
2009
+ /** Location-related plugin */
2010
+ export interface TTTPlugin_xPpwgh {
2011
+ /** Get the current geographic location and speed */
2012
+ getLocation: (
2013
+ locationBean: LocationBean_7P4YQ0,
2014
+ success: SuccessCb_PMh66M<LocationCB_G6oXOe>,
2015
+ fail: FailureCb_mMWysM
2016
+ ) => void
2017
+ /** Open the map to select a location */
2018
+ chooseLocation: (
2019
+ choose: ChooseBean_ujFaL4,
2020
+ success: SuccessCb_RjWsJh<ChooseCB_ffwl4r>,
2021
+ fail: FailureCb_mMWysM
2022
+ ) => void
2023
+ /** Get the types of third-party maps that can be opened */
2024
+ getMapList: (
2025
+ success: SuccessCb_zKc7ri<MapsBean_R85qWb>,
2026
+ fail: FailureCb_mMWysM
2027
+ ) => void
2028
+ /** View location using a third-party map */
2029
+ openMapAppLocation: (
2030
+ openMapApp: OpenMapAppBean_IBaGrJ,
2031
+ success: SuccessCb_kavHEj<null>,
2032
+ fail: FailureCb_mMWysM
2033
+ ) => void
2034
+ /** Open the map and start navigation to a location using a third-party map application */
2035
+ openMapNavigation: (
2036
+ navigationBean: OpenMapNavigationBean_yjAelP,
2037
+ success: SuccessCb_kavHEj<null>,
2038
+ fail: FailureCb_mMWysM
2039
+ ) => void
2040
+ /** Convert latitude and longitude or address */
2041
+ transformLocation: (
2042
+ request: TransformLocationReq_Gp1PbH,
2043
+ success: SuccessCb_IJPjEo<TransformLocationResp_KRpAMY>,
2044
+ fail: FailureCb_mMWysM
2045
+ ) => void
2046
+ /** Convert latitude and longitude to a specific address */
2047
+ reverseGeocodeLocation: (
2048
+ request: ReverseGeocodeLocationReq_pGlnaJ,
2049
+ success: SuccessCb_IJPjEo<TransformLocationResp_KRpAMY>,
2050
+ fail: FailureCb_mMWysM
2051
+ ) => void
2052
+ /** Convert WGS84 coordinate system to GCJ02 coordinate system */
2053
+ coordinateWGS84ToGCJ02: (
2054
+ coordinate: Coordinate_DMuxtb,
2055
+ success: SuccessCb_SAN4Cm<Coordinate_DMuxtb>,
2056
+ fail: FailureCb_mMWysM
2057
+ ) => void
2058
+ /** Convert GCJ02 coordinate system to WGS84 coordinate system */
2059
+ coordinateGCJ02ToWGS84: (
2060
+ coordinate: Coordinate_DMuxtb,
2061
+ success: SuccessCb_SAN4Cm<Coordinate_DMuxtb>,
2062
+ fail: FailureCb_mMWysM
2063
+ ) => void
2064
+ /**
2065
+ * Get the current map type
2066
+ * huawei: Huawei Map
2067
+ * google: Google Map
2068
+ * amap: Amap
2069
+ * apple: Apple Map
2070
+ */
2071
+ getMapType: (
2072
+ success: SuccessCb_3Nce4R<MapTypeBean_Obunxh>,
2073
+ fail: FailureCb_mMWysM
2074
+ ) => void
2075
+ }
2076
+
2077
+ export interface LocationError_tCwcSx {
2078
+ /** Location error code */
1862
2079
  errCode: number
1863
2080
  }
1864
2081
 
1865
- /** @since MapKit 1.0.6 */
1866
- export interface OpenBean {
1867
- /**
1868
- * 纬度,范围 -90~90,负数表示南纬
1869
- * @since MapKit 1.0.6
1870
- */
2082
+ export interface OpenBean_zflRx8 {
2083
+ /** Latitude, range -90~90, negative values indicate south latitude */
1871
2084
  latitude: number
1872
- /**
1873
- * 经度,范围 -180~180,负数表示西经
1874
- * @since MapKit 1.0.6
1875
- */
2085
+ /** Longitude, range -180~180, negative values indicate west longitude */
1876
2086
  longitude: number
1877
2087
  /**
1878
- * 缩放级别,范围 5~18
1879
- * @since MapKit 1.0.6
2088
+ * Zoom level, range 5~18
1880
2089
  * @defaultValue 18
1881
2090
  */
1882
2091
  scale?: number
1883
- /**
1884
- * 位置名称
1885
- * @since MapKit 1.0.6
1886
- */
2092
+ /** Location name */
1887
2093
  name?: string
1888
- /**
1889
- * 地址详细描述
1890
- * @since MapKit 1.0.6
1891
- */
2094
+ /** Detailed description of the address */
1892
2095
  address?: string
1893
2096
  }
1894
2097
 
1895
- /** @since MapKit 3.4.16 */
1896
- export interface CoordinateRegion {}
2098
+ export interface CoordinateRegion_vXpu3d {}
1897
2099
 
1898
- /**
1899
- * 地图搜索-参数配置
1900
- * @since MapKit 3.4.16
1901
- */
1902
- export interface AddressRequestParams {
2100
+ /** 地图搜索-参数配置 */
2101
+ export interface AddressRequestParams_9mlM3s {
1903
2102
  /**
1904
2103
  * 地图能力(Android only)
1905
2104
  * 0-高德
@@ -1931,17 +2130,13 @@ declare namespace ty.map {
1931
2130
  * 搜索中心点经纬度、搜索范围(IOS ONLY)设置
1932
2131
  * @since MapKit 3.4.16
1933
2132
  */
1934
- region: CoordinateRegion
2133
+ region: CoordinateRegion_vXpu3d
1935
2134
  }
1936
2135
 
1937
- /** @since MapKit 3.4.16 */
1938
- export interface LocationCoordinate2D {}
2136
+ export interface LocationCoordinate2D_kSVBLa {}
1939
2137
 
1940
- /**
1941
- * 地址信息
1942
- * @since MapKit 3.4.16
1943
- */
1944
- export interface AddressInfo {
2138
+ /** 地址信息 */
2139
+ export interface AddressInfo_aEXhSQ {
1945
2140
  /**
1946
2141
  * 地址 POI ID
1947
2142
  * @since MapKit 3.4.16
@@ -1961,6 +2156,22 @@ declare namespace ty.map {
1961
2156
  * 当前地址经纬度坐标
1962
2157
  * @since MapKit 3.4.16
1963
2158
  */
1964
- coordinate2D: LocationCoordinate2D
2159
+ coordinate2D: LocationCoordinate2D_kSVBLa
2160
+ }
2161
+
2162
+ /** 地图本地化搜索 */
2163
+ export interface ThingPlugin_Yr5vWu {
2164
+ /** 搜索地址(列表) */
2165
+ searchAddressList: (
2166
+ params: AddressRequestParams_9mlM3s,
2167
+ success: SuccessCb_cUH34u<AddressInfo_aEXhSQ[]>,
2168
+ fail: FailureCb_mMWysM
2169
+ ) => void
2170
+ /** 获取地址详细信息 */
2171
+ getAddressInfo: (
2172
+ params: AddressInfo_aEXhSQ,
2173
+ success: SuccessCb_douwsy<AddressInfo_aEXhSQ>,
2174
+ fail: FailureCb_mMWysM
2175
+ ) => void
1965
2176
  }
1966
2177
  }