diff --git a/website/docs/api/inspection.mdx b/website/docs/api/inspection.mdx index f17381303a..7c1072c899 100644 --- a/website/docs/api/inspection.mdx +++ b/website/docs/api/inspection.mdx @@ -321,20 +321,28 @@ 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 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 = 1; + return h3.constructCell(baseCellNumber, [0], res); +} +``` @@ -357,11 +365,12 @@ This function may not be available in all bindings. -:::note - -This function may not be available in all bindings. - -::: +```sql +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) +``` @@ -662,11 +671,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 +706,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) +```