geo_h3cell_level()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Calculates the H3 cell resolution.

Read more about H3 Cell.

Syntax

geo_h3cell_level(h3cell)

Learn more about syntax conventions.

Parameters

Name Type Required Description
h3cell string ✔️ An H3 Cell token value as it was calculated by geo_point_to_h3cell().

Returns

An integer that represents H3 Cell level. Valid level is in range [0, 15]. If the H3 Cell is invalid, the query will produce a null result.

Examples

print cell_res = geo_h3cell_level('862a1072fffffff')

Output

cell_res
6
print cell_res = geo_h3cell_level(geo_point_to_h3cell(1,1,10))

Output

cell_res
10

The following example returns true because of the invalid H3 Cell token input.

print invalid_res = isnull(geo_h3cell_level('abc'))

Output

invalid_res
1