View source: R/qk_to_polygon_functions.R
quadkey_to_polygon | R Documentation |
This functions creates a sf
POLYGON data.frame from a QuadKey string.
quadkey_to_polygon(quadkey)
quadkey |
The QuadKey as a string |
A sf
POLYGON data.frame with a quadkey
and geometry
column.
quadkey_df_to_polygon
# Quadkey as string
quadkey_to_polygon(quadkey = "213")
# QuadKeys as column in a data.frame
# get data file
path <- paste0(
system.file("extdata", package = "quadkeyr"),
"/cityA_2020_04_15_0000.csv"
)
data <- read.csv(path)
data <- format_fb_data(data)
quadkey_df_to_polygon(data = data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.