geo_get_coords | R Documentation |
Get coordinates
geo_get_coords(x)
x |
geojson string |
You can use jsonlite
to convert the output to R
objects
a character vector with coordinates as JSON
## Not run:
x <- '{"type": "Feature", "geometry": {"type": "Point","coordinates": [1, 2]},"properties": {}}'
geo_get_coords(x)
x <- '{"type": "Point", "coordinates": [1, 2]}'
geo_get_coords(x)
x <- '[0, 5]'
geo_get_coords(x)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.