Description Usage Arguments Value See Also
View source: R/h3_h3-to-geo-boundary.R
Get the vertices of a given hexagon (or pentagon) either as an array of [lat, lng] points or as GeoJSON output: [lng, lat] points and closed loops.
1 | h3_to_geo_boundary(h3_index, format_as_geojson = TRUE)
|
h3_index |
character vector representing H3 indexes |
format_as_geojson |
provide GeoJSON output: [lng, lat] and closed loops? |
matrix with [lat, lng] or [lng, lat] points if format_as_geojson = TRUE
;
Furthermore, GeoJSON format returns closed loops; list of matrices if multiple indexes
are supplied
geo_boundary_to_sf and geo_to_sf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.