geo_write | R Documentation |
Write geojson to disk
geo_write(x, file)
x |
input, an object of class |
file |
(character) a file path, or connection |
Wrapper around jsonlite::toJSON()
and
cat
file <- tempfile(fileext = ".geojson")
geo_write(
point('{ "type": "Point", "coordinates": [100.0, 0.0] }'),
file
)
readLines(file)
unlink(file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.