library(geojsonR)
# INPUT IS A GEOJSON (character string)
tmp_str = '{
"name" : "example_name",
"location" : {
"type" : "Point",
"coordinates" : [ -120.24, 39.21 ]
}
}'
res = FROM_GeoJson_Schema(url_file_string = tmp_str, geometry_name = "location")
Run the code above in your browser using DataLab