h3IndexesAreNeighbors method

  1. @override
bool h3IndexesAreNeighbors(
  1. BigInt origin,
  2. BigInt destination
)
override

Returns whether or not two H3 indexes are neighbors (share an edge)

Implementation

@override
bool h3IndexesAreNeighbors(BigInt origin, BigInt destination) {
  return _h3c.h3IndexesAreNeighbors(origin.toInt(), destination.toInt()) == 1;
}