Description Usage Arguments Examples
View source: R/h3_algorithms.R
Get the outlines of a set of hexagons
1 | h3_set_to_multi_polygon(h3_index, format_as_geojson = TRUE)
|
h3_index |
character vector representing H3 indexes |
format_as_geojson |
provide GeoJSON output: [lng, lat] and closed loops? |
1 2 3 4 5 6 7 | coords <- c(37.3615593, -122.0553238)
geo_to_h3(coords) %>%
k_ring(3) %>%
h3_set_to_multi_polygon() %>%
geo_boundary_to_sf() %>%
plot()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.