@@ -129,6 +129,7 @@ const coordinates = h3.h3SetToMultiPolygon(hexagons, true);
129
129
* [ .degsToRads(deg)] ( #module_h3.degsToRads ) ⇒ <code >number</code >
130
130
* [ .radsToDegs(rad)] ( #module_h3.radsToDegs ) ⇒ <code >number</code >
131
131
* [ .H3Index] ( #module_h3.H3Index ) : <code >string</code >
132
+ * [ .H3IndexInput] ( #module_h3.H3IndexInput ) : <code >string</code > \| <code >Array.< ; number> ; </code >
132
133
* [ .CoordIJ] ( #module_h3.CoordIJ ) : <code >Object</code >
133
134
* [ .UNITS] ( #module_h3.UNITS ) : <code >Object</code >
134
135
@@ -144,7 +145,7 @@ Whether a given string represents a valid H3 index
144
145
145
146
| Param | Type | Description |
146
147
| --- | --- | --- |
147
- | h3Index | <code >H3Index </code > | H3 index to check |
148
+ | h3Index | <code >H3IndexInput </code > | H3 index to check |
148
149
149
150
150
151
* * *
@@ -158,7 +159,7 @@ Whether the given H3 index is a pentagon
158
159
159
160
| Param | Type | Description |
160
161
| --- | --- | --- |
161
- | h3Index | <code >H3Index </code > | H3 index to check |
162
+ | h3Index | <code >H3IndexInput </code > | H3 index to check |
162
163
163
164
164
165
* * *
@@ -174,7 +175,7 @@ icosahedron edges, making them not true hexagons).
174
175
175
176
| Param | Type | Description |
176
177
| --- | --- | --- |
177
- | h3Index | <code >H3Index </code > | H3 index to check |
178
+ | h3Index | <code >H3IndexInput </code > | H3 index to check |
178
179
179
180
180
181
* * *
@@ -188,7 +189,7 @@ Get the number of the base cell for a given H3 index
188
189
189
190
| Param | Type | Description |
190
191
| --- | --- | --- |
191
- | h3Index | <code >H3Index </code > | H3 index to get the base cell for |
192
+ | h3Index | <code >H3IndexInput </code > | H3 index to get the base cell for |
192
193
193
194
194
195
* * *
@@ -202,7 +203,7 @@ Get the indices of all icosahedron faces intersected by a given H3 index
202
203
203
204
| Param | Type | Description |
204
205
| --- | --- | --- |
205
- | h3Index | <code >H3Index </code > | H3 index to get faces for |
206
+ | h3Index | <code >H3IndexInput </code > | H3 index to get faces for |
206
207
207
208
208
209
* * *
@@ -216,7 +217,7 @@ Returns the resolution of an H3 index
216
217
217
218
| Param | Type | Description |
218
219
| --- | --- | --- |
219
- | h3Index | <code >H3Index </code > | H3 index to get resolution |
220
+ | h3Index | <code >H3IndexInput </code > | H3 index to get resolution |
220
221
221
222
222
223
* * *
@@ -246,7 +247,7 @@ Get the lat,lon center of a given hexagon
246
247
247
248
| Param | Type | Description |
248
249
| --- | --- | --- |
249
- | h3Index | <code >H3Index </code > | H3 index |
250
+ | h3Index | <code >H3IndexInput </code > | H3 index |
250
251
251
252
252
253
* * *
@@ -277,7 +278,7 @@ Get the parent of the given hexagon at a particular resolution
277
278
278
279
| Param | Type | Description |
279
280
| --- | --- | --- |
280
- | h3Index | <code >H3Index </code > | H3 index to get parent for |
281
+ | h3Index | <code >H3IndexInput </code > | H3 index to get parent for |
281
282
| res | <code >number</code > | Resolution of hexagon to return |
282
283
283
284
@@ -292,7 +293,7 @@ Get the children/descendents of the given hexagon at a particular resolution
292
293
293
294
| Param | Type | Description |
294
295
| --- | --- | --- |
295
- | h3Index | <code >H3Index </code > | H3 index to get children for |
296
+ | h3Index | <code >H3IndexInput </code > | H3 index to get children for |
296
297
| res | <code >number</code > | Resolution of hexagons to return |
297
298
298
299
@@ -307,7 +308,7 @@ Get the center child of the given hexagon at a particular resolution
307
308
308
309
| Param | Type | Description |
309
310
| --- | --- | --- |
310
- | h3Index | <code >H3Index </code > | H3 index to get center child for |
311
+ | h3Index | <code >H3IndexInput </code > | H3 index to get center child for |
311
312
| res | <code >number</code > | Resolution of hexagon to return |
312
313
313
314
@@ -322,7 +323,7 @@ Get all hexagons in a k-ring around a given center. The order of the hexagons is
322
323
323
324
| Param | Type | Description |
324
325
| --- | --- | --- |
325
- | h3Index | <code >H3Index </code > | H3 index of center hexagon |
326
+ | h3Index | <code >H3IndexInput </code > | H3 index of center hexagon |
326
327
| ringSize | <code >number</code > | Radius of k-ring |
327
328
328
329
@@ -338,7 +339,7 @@ ordered by distance from the origin. The order of the hexagons within each ring
338
339
339
340
| Param | Type | Description |
340
341
| --- | --- | --- |
341
- | h3Index | <code >H3Index </code > | H3 index of center hexagon |
342
+ | h3Index | <code >H3IndexInput </code > | H3 index of center hexagon |
342
343
| ringSize | <code >number</code > | Radius of k-ring |
343
344
344
345
@@ -358,7 +359,7 @@ Unlike kRing, this function will throw an error if there is a pentagon anywhere
358
359
359
360
| Param | Type | Description |
360
361
| --- | --- | --- |
361
- | h3Index | <code >H3Index </code > | H3 index of center hexagon |
362
+ | h3Index | <code >H3IndexInput </code > | H3 index of center hexagon |
362
363
| ringSize | <code >number</code > | Radius of ring |
363
364
364
365
@@ -401,7 +402,7 @@ algorithm may produce unexpected or invalid polygons.
401
402
402
403
| Param | Type | Description |
403
404
| --- | --- | --- |
404
- | h3Indexes | <code >Array.< ; H3Index > ; </code > | H3 indexes to get outlines for |
405
+ | h3Indexes | <code >Array.< ; H3IndexInput > ; </code > | H3 indexes to get outlines for |
405
406
| [ formatAsGeoJson] | <code >boolean</code > | Whether to provide GeoJSON output: [ lng, lat] , closed loops |
406
407
407
408
@@ -421,7 +422,7 @@ multiple levels that represents the same area.
421
422
422
423
| Param | Type | Description |
423
424
| --- | --- | --- |
424
- | h3Set | <code >Array.< ; H3Index > ; </code > | H3 indexes to compact |
425
+ | h3Set | <code >Array.< ; H3IndexInput > ; </code > | H3 indexes to compact |
425
426
426
427
427
428
* * *
@@ -439,7 +440,7 @@ Uncompact a compacted set of hexagons to hexagons of the same resolution
439
440
440
441
| Param | Type | Description |
441
442
| --- | --- | --- |
442
- | compactedSet | <code >Array.< ; H3Index > ; </code > | H3 indexes to uncompact |
443
+ | compactedSet | <code >Array.< ; H3IndexInput > ; </code > | H3 indexes to uncompact |
443
444
| res | <code >number</code > | The resolution to uncompact to |
444
445
445
446
@@ -454,8 +455,8 @@ Whether two H3 indexes are neighbors (share an edge)
454
455
455
456
| Param | Type | Description |
456
457
| --- | --- | --- |
457
- | origin | <code >H3Index </code > | Origin hexagon index |
458
- | destination | <code >H3Index </code > | Destination hexagon index |
458
+ | origin | <code >H3IndexInput </code > | Origin hexagon index |
459
+ | destination | <code >H3IndexInput </code > | Destination hexagon index |
459
460
460
461
461
462
* * *
@@ -469,8 +470,8 @@ Get an H3 index representing a unidirectional edge for a given origin and destin
469
470
470
471
| Param | Type | Description |
471
472
| --- | --- | --- |
472
- | origin | <code >H3Index </code > | Origin hexagon index |
473
- | destination | <code >H3Index </code > | Destination hexagon index |
473
+ | origin | <code >H3IndexInput </code > | Origin hexagon index |
474
+ | destination | <code >H3IndexInput </code > | Destination hexagon index |
474
475
475
476
476
477
* * *
@@ -484,7 +485,7 @@ Get the origin hexagon from an H3 index representing a unidirectional edge
484
485
485
486
| Param | Type | Description |
486
487
| --- | --- | --- |
487
- | edgeIndex | <code >H3Index </code > | H3 index of the edge |
488
+ | edgeIndex | <code >H3IndexInput </code > | H3 index of the edge |
488
489
489
490
490
491
* * *
@@ -498,7 +499,7 @@ Get the destination hexagon from an H3 index representing a unidirectional edge
498
499
499
500
| Param | Type | Description |
500
501
| --- | --- | --- |
501
- | edgeIndex | <code >H3Index </code > | H3 index of the edge |
502
+ | edgeIndex | <code >H3IndexInput </code > | H3 index of the edge |
502
503
503
504
504
505
* * *
@@ -512,7 +513,7 @@ Whether the input is a valid unidirectional edge
512
513
513
514
| Param | Type | Description |
514
515
| --- | --- | --- |
515
- | edgeIndex | <code >H3Index </code > | H3 index of the edge |
516
+ | edgeIndex | <code >H3IndexInput </code > | H3 index of the edge |
516
517
517
518
518
519
* * *
@@ -526,7 +527,7 @@ Get the [origin, destination] pair represented by a unidirectional edge
526
527
527
528
| Param | Type | Description |
528
529
| --- | --- | --- |
529
- | edgeIndex | <code >H3Index </code > | H3 index of the edge |
530
+ | edgeIndex | <code >H3IndexInput </code > | H3 index of the edge |
530
531
531
532
532
533
* * *
@@ -541,7 +542,7 @@ every neighbor)
541
542
542
543
| Param | Type | Description |
543
544
| --- | --- | --- |
544
- | h3Index | <code >H3Index </code > | H3 index of the origin hexagon |
545
+ | h3Index | <code >H3IndexInput </code > | H3 index of the origin hexagon |
545
546
546
547
547
548
* * *
@@ -556,7 +557,7 @@ cross the edge of an icosahedron face, this may return 3 coordinates.
556
557
557
558
| Param | Type | Description |
558
559
| --- | --- | --- |
559
- | edgeIndex | <code >H3Index </code > | H3 index of the edge |
560
+ | edgeIndex | <code >H3IndexInput </code > | H3 index of the edge |
560
561
| [ formatAsGeoJson] | <code >boolean</code > | Whether to provide GeoJSON output: [ lng, lat] |
561
562
562
563
@@ -574,8 +575,8 @@ on opposite sides of a pentagon.
574
575
575
576
| Param | Type | Description |
576
577
| --- | --- | --- |
577
- | origin | <code >H3Index </code > | Origin hexagon index |
578
- | destination | <code >H3Index </code > | Destination hexagon index |
578
+ | origin | <code >H3IndexInput </code > | Origin hexagon index |
579
+ | destination | <code >H3IndexInput </code > | Destination hexagon index |
579
580
580
581
581
582
* * *
@@ -606,8 +607,8 @@ Notes:
606
607
607
608
| Param | Type | Description |
608
609
| --- | --- | --- |
609
- | origin | <code >H3Index </code > | Origin hexagon index |
610
- | destination | <code >H3Index </code > | Destination hexagon index |
610
+ | origin | <code >H3IndexInput </code > | Origin hexagon index |
611
+ | destination | <code >H3IndexInput </code > | Destination hexagon index |
611
612
612
613
613
614
* * *
@@ -634,8 +635,8 @@ to be compatible across different versions of H3.
634
635
635
636
| Param | Type | Description |
636
637
| --- | --- | --- |
637
- | origin | <code >H3Index </code > | Origin H3 index |
638
- | destination | <code >H3Index </code > | H3 index for which to find relative coordinates |
638
+ | origin | <code >H3IndexInput </code > | Origin H3 index |
639
+ | destination | <code >H3IndexInput </code > | H3 index for which to find relative coordinates |
639
640
640
641
641
642
* * *
@@ -662,7 +663,7 @@ to be compatible across different versions of H3.
662
663
663
664
| Param | Type | Description |
664
665
| --- | --- | --- |
665
- | origin | <code >H3Index </code > | Origin H3 index |
666
+ | origin | <code >H3IndexInput </code > | Origin H3 index |
666
667
| coords | <code >CoordIJ</code > | Coordinates as an ` {i, j} ` pair |
667
668
668
669
@@ -840,6 +841,15 @@ Convert radians to degrees
840
841
64-bit hexidecimal string representation of an H3 index
841
842
842
843
844
+ * * *
845
+
846
+ <a name =" module_h3.H3IndexInput " ></a >
847
+
848
+ ### h3.H3IndexInput : <code >string</code > \| <code >Array.< ; number> ; </code >
849
+ 64-bit hexidecimal string representation of an H3 index,
850
+ or two 32-bit integers in little endian order in an array.
851
+
852
+
843
853
* * *
844
854
845
855
<a name =" module_h3.CoordIJ " ></a >
0 commit comments