h3Distance abstract method

int h3Distance(
  1. BigInt origin,
  2. BigInt destination
)

Get the grid distance between two hex indexes. This function may fail to find the distance between two indexes if they are very far apart or on opposite sides of a pentagon.

Returns -1 when result can't be calculated

Implementation

int h3Distance(BigInt origin, BigInt destination);