udedge_to_line {h3jsr}R Documentation

Get the geometry of an H3 edge

Description

This function takes an H3 unidirectional edge address and returns the coordinates of its geometry in WGS84.

Usage

udedge_to_line(h3_edge = NULL, simple = TRUE)

Arguments

h3_edge

Character; address of unidirectional edge.

simple

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

Value

By default, an object of type 'sfc_LINESTRING'.

Examples

# get me the shape of this edge
udedge_to_line(h3_edge = '166be8d12fffffff')


[Package h3jsr version 1.3.1 Index]