From 33270048c8c6405f8609a3766938710d42d7424d Mon Sep 17 00:00:00 2001 From: Isaac Brodsky Date: Fri, 7 Nov 2025 14:48:59 -0800 Subject: [PATCH 1/3] update docs for duckdb, java for v4.4.0 --- website/docs/api/inspection.mdx | 35 ++++++++++++++------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/website/docs/api/inspection.mdx b/website/docs/api/inspection.mdx index f17381303a..9b67a34160 100644 --- a/website/docs/api/inspection.mdx +++ b/website/docs/api/inspection.mdx @@ -321,11 +321,10 @@ Returns 0 (`E_SUCCESS`) on success. Returns an error code on failure: -:::note - -This function may not be available in all bindings. - -::: +```java +long constructCell(int res, int baseCellNumber, List digits); +String constructCellAddress(int res, int baseCellNumber, List digits); +``` @@ -357,11 +356,10 @@ This function may not be available in all bindings. -:::note - -This function may not be available in all bindings. - -::: +```sql +h3_construct_cell(res, base_cell_number, digits) +h3_construct_cell_string(res, base_cell_number, digits) +``` @@ -662,11 +660,10 @@ Returns 1 if the H3 index is valid for any supported type (cell, directed edge, -:::note - -This function may not be available in all bindings. - -::: +```java +boolean isValidIndex(long h3); +boolean isValidIndex(String h3Address); +``` @@ -698,11 +695,9 @@ This function may not be available in all bindings. -:::note - -This function may not be available in all bindings. - -::: +```sql +h3_is_valid_index(h) +``` From 6174fb794696b6b16b2a9747bfe54c7ab60f147f Mon Sep 17 00:00:00 2001 From: Isaac Brodsky Date: Fri, 14 Nov 2025 17:26:42 -0800 Subject: [PATCH 2/3] update docs --- website/docs/api/inspection.mdx | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/website/docs/api/inspection.mdx b/website/docs/api/inspection.mdx index 9b67a34160..0b5e7262cd 100644 --- a/website/docs/api/inspection.mdx +++ b/website/docs/api/inspection.mdx @@ -322,18 +322,27 @@ Returns 0 (`E_SUCCESS`) on success. Returns an error code on failure: ```java -long constructCell(int res, int baseCellNumber, List digits); -String constructCellAddress(int res, int baseCellNumber, List digits); +long constructCell(int baseCellNumber, List digits); +long constructCell(int baseCellNumber, List digits, int res); +String constructCellAddress(int baseCellNumber, List digits); +String constructCellAddress(int baseCellNumber, List digits, int res); ``` -:::note - -This function may not be available in all bindings. +```js +h3.constructCell(baseCellNumber, digits) +h3.constructCell(baseCellNumber, digits, res) +``` -::: +```js live +function example() { + const baseCellNumber = 0; + const res = 2; + return h3.constructCell(baseCellNumber, [0], res); +} +``` @@ -357,8 +366,10 @@ This function may not be available in all bindings. ```sql -h3_construct_cell(res, base_cell_number, digits) -h3_construct_cell_string(res, base_cell_number, digits) +h3_construct_cell(base_cell_number, digits) +h3_construct_cell(base_cell_number, digits, res) +h3_construct_cell_string(base_cell_number, digits) +h3_construct_cell_string(base_cell_number, digits, res) ``` From 398967b1a1f6b4c857268aecd15be949446c3d7e Mon Sep 17 00:00:00 2001 From: Isaac Brodsky Date: Wed, 3 Dec 2025 13:38:38 -0800 Subject: [PATCH 3/3] fix res per review --- website/docs/api/inspection.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/api/inspection.mdx b/website/docs/api/inspection.mdx index 0b5e7262cd..7c1072c899 100644 --- a/website/docs/api/inspection.mdx +++ b/website/docs/api/inspection.mdx @@ -339,7 +339,7 @@ h3.constructCell(baseCellNumber, digits, res) ```js live function example() { const baseCellNumber = 0; - const res = 2; + const res = 1; return h3.constructCell(baseCellNumber, [0], res); } ```