Skip to contents

Provides the distance in grid cells between the two indexes.

Usage

gridDistance(origin, destination)

Arguments

origin

vector of origin H3 cell indexes

destination

vector of destination H3 cell indexes

Value

the grid distance between the two H3 cells

Examples


gridDistance(origin = c("85283473fffffff","85283473fffffff"),
             destination = c("8528342bfffffff","85283477fffffff"))
#> [1] 2 1