#' List available regions for a region type
#'
#' @export
#' @param region (character) region type
#' @param ... curl options passed on to [crul::HttpClient()]
#' @return a data frame with columns:
#'
#' - region title
#' - region ID
#'
#' @examples \dontrun{
#' listregions(region = "eez")
#' }
listregions <- function(region, ...) {
data <- callapi(paste0("api/v1/", region, "/"), list(nospatial = "true"), ...)
return(data)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.