H3 cell to children

Supported in: Batch, Streaming

Get children of an H3 index at given resolution specifying children coarseness. Returns null for resolution <0 or >15 or for children resolution lower than given H3 index's resolution.

Expression categories: Geospatial

Declared arguments

  • Children resolution - H3 grid children resolution between 0 and 15 (inclusive).
    Expression<Byte | Integer | Long | Short>
  • H3 index - A valid H3 index.
    Expression<H3 Index>

Output type: Array<H3 Index>

Examples

Example 1: Base case

Argument values:

  • Children resolution: childrenResolution
  • H3 index: h3Index
h3IndexchildrenResolutionOutput
85283473fffffff6[ 862834707ffffff, 86283470fffffff, 862834717ffffff, 86283471fffffff, 862834727ffffff, 86283472fffffff, 862834737ffffff ]
881F1D4887FFFFF9[ 891f1d48863ffff, 891f1d48867ffff, 891f1d4886bffff, 891f1d4886fffff, 891f1d48873ffff, 891f1d48877ffff, 891f1d4887bffff ]
86be8d12fffffff8[ 88be8d1281fffff, 88be8d1283fffff, 88be8d1285fffff, 88be8d1287fffff, 88be8d1289fffff, 88be8d128bfff...

Example 2: Null case

Argument values:

  • Children resolution: childrenResolution
  • H3 index: h3Index
h3IndexchildrenResolutionOutput
85283473fffffff4null

Example 3: Null case

Argument values:

  • Children resolution: childrenResolution
  • H3 index: h3Index
h3IndexchildrenResolutionOutput
87283472bgggggg9null
860800017ffffff-1null
860800017ffffff16null
null6null
860800017ffffffnullnull

Example 4: Edge case

Argument values:

  • Children resolution: childrenResolution
  • H3 index: h3Index
h3IndexchildrenResolutionOutput
8e4e60c1c2a7fff15[ 8f4e60c1c2a7ff8, 8f4e60c1c2a7ff9, 8f4e60c1c2a7ffa, 8f4e60c1c2a7ffb, 8f4e60c1c2a7ffc, 8f4e60c1c2a7ffd, 8f4e60c1c2a7ffe ]

Example 5: Edge case

Argument values:

  • Children resolution: childrenResolution
  • H3 index: h3Index
h3IndexchildrenResolutionOutput
8029fffffffffff0[ 8029fffffffffff ]

Example 6: Edge case

Argument values:

  • Children resolution: childrenResolution
  • H3 index: h3Index
h3IndexchildrenResolutionOutput
8928308280fffff9[ 8928308280fffff ]