#' Springs
#'
#' Function returns the springs in the municipality of Bage
#'
#' @export
#' @family general area functions
#' @examples \dontrun{
#'
#' library(geobage)
#'
#' c <- read_springs_bg()
#'
#' }
read_springs_bg <- function(){
objeto <- geojsonio::geojson_read("https://raw.githubusercontent.com/GeoInformacao/filesGeoJSONgeobage/main/NASCENTES.geojson",what = "sp")
# Criando um objeto Simple Feature (sf) com coordenadas geometricas
objeto <- sf::st_as_sf(objeto, coords(list(c('long', 'lat')), group_by(objeto$id)))
objeto
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.