gridPathCells | R Documentation |
Given two H3 indexes, return the line of indexes between them (inclusive).
gridPathCells(origin, destination)
origin |
vector of origin H3 cell indexes |
destination |
vector of destination H3 cell indexes |
This function may fail to find the line between two indexes, for example if they are very far apart. It may also fail when finding distances for indexes on opposite sides of a pentagon.
the line of indexes between the two H3 cells
gridPathCells(origin = c("85283473fffffff","85283473fffffff")
, destination = c("85283471fffffff","85283477fffffff"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.