@ray-js/api 1.7.81 → 1.7.82

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