Skip to contents

Given two H3 indexes, return the line of indexes between them (inclusive).

Usage

gridPathCells(origin, destination)

Arguments

origin

vector of origin H3 cell indexes

destination

vector of destination H3 cell indexes

Value

the line of indexes between the two H3 cells

Details

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.

Examples


gridPathCells(origin = c("85283473fffffff","85283473fffffff")
              , destination = c("85283471fffffff","85283477fffffff"))
#> [[1]]
#> [1] "85283473fffffff"
#> 
#> [[2]]
#> [1] "85283473fffffff" "85283477fffffff"
#>