Skip to contents

This function calculates the exact length of an H3 cell edge.

Usage

edge_length(h3_edge = NULL, units = c("m", "km", "rads"), simple = TRUE)

Arguments

h3_edge

Character; address of unidirectional edge.

units

Length unit to report in. Options are meters, kilometers, or radians.

simple

Logical; whether to return a vector of outputs or a data frame containing both inputs and outputs.

Value

By default, a numeric vector of length(h3_address).

Examples

edge_length(h3_edge = '166be8d12fffffff', 'm')
#> [1] 4037.687