h3GetResolution method

  1. @override
int h3GetResolution(
  1. BigInt h3Index
)
override

Returns the resolution of the provided H3 index

Works on both cells and unidirectional edges.

Implementation

@override
int h3GetResolution(BigInt h3Index) {
  if (!h3IsValid(h3Index)) {
    throw H3Exception('H3Index is not valid.');
  }
  return h3_js.h3GetResolution(h3Index.toH3JS()).toInt();
}