Nothing
knitr::opts_chunk$set( comment = "#>", collapse = TRUE, warning = FALSE, message = FALSE )
Tools for linting 'GeoJSON'.
GeoJSON linters available in geojsonlint
geojson_hint()
- GeoJSON hint JS librarygeojson_validate()
- is-my-json-valid JS library using a GeoJSON
schema from https://github.com/SchemaStore/schemastoreStable version from CRAN
install.packages("geojsonlint")
Development version from GitHub
remotes::install_github("ropensci/geojsonlint")
library("geojsonlint")
geojsonhint JS library
geojson_hint(x = '{"type": "Point", "coordinates": [-100, 80]}')
is-my-json-valid JS library
geojson_validate(x = '{"type": "Point", "coordinates": [-100, 80]}')
geojsonhint JS library
geojson_hint('{"type": "FooBar"}')
is-my-json-valid JS library
geojson_validate('{ "type": "FeatureCollection" }')
geojsonhint JS library
geojson_hint('{"type": "FooBar"}', inform = TRUE)
is-my-json-valid JS library
geojson_validate('{ "type": "FeatureCollection" }', inform = TRUE)
geojsonhint JS library
geojson_hint('{"type": "FooBar"}', error = TRUE) #> Error: Line 1 #> - The type FooBar is unknown
is-my-json-valid JS library
geojson_validate('{ "type": "FeatureCollection" }', error = TRUE) #> Error: 1 error validating json: #> - data: no (or more than one) schemas match
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.