geo_get_coords {geoops} | 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)