Learn R Programming

h3jsr (version 1.3.1)

udedge_to_line: 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)

Value

By default, an object of type `sfc_LINESTRING`.

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.

Examples

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

Run the code above in your browser using DataLab