Get all hexagons in a k-ring around a given center, in an array of arraysordered by distance from the origin. The order of the hexagons within each ring is undefined.

h3_k_ring_distances(h3Index, ringSize)

Arguments

h3Index

H3Index H3 index of center hexagon

ringSize

Number Radius of k-ring

Value

Array.<Array.<H3Index>> - Array of arrays with H3 indexes for all hexagons each ring