getH3IndexesFromUnidirectionalEdge method

  1. @override
List<BigInt> getH3IndexesFromUnidirectionalEdge(
  1. BigInt edgeIndex
)
override

Get the origin, destination pair represented by a unidirectional edge

Implementation

@override
List<BigInt> getH3IndexesFromUnidirectionalEdge(BigInt edgeIndex) {
  return using((arena) {
    final out = arena<Uint64>(2);
    _h3c.getH3IndexesFromUnidirectionalEdge(edgeIndex.toInt(), out);
    return out.asTypedList(2).map((e) => e.toBigInt()).toList();
  });
}