Skip to contents

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')
#> Geometry set for 1 feature 
#> Geometry type: LINESTRING
#> Dimension:     XY
#> Bounding box:  xmin: 153.039 ymin: -27.51385 xmax: 153.0433 ymax: -27.47774
#> Geodetic CRS:  WGS 84
#> LINESTRING (153.039 -27.51385, 153.0433 -27.47774)