View source: R/wdpa_api_countries.R
wdpa_api_countries | R Documentation |
WDPA API: countries
wdpa_api_countries(country_code = NULL, geojson = FALSE, page = 1, per_page = 25, token = NULL, ...)
country_code |
(character) ISO3 country code ID |
geojson |
(logical) If |
page |
(integer) page to retrieve. Default: 1 |
per_page |
(character) results to retrieve per page. Default: 25 |
token |
(character) token. see rwdpa for help on tokens |
... |
curl options passed on to crul::HttpClient |
This function uses the Protected Planet API
https://api.protectedplanet.net/documentation
## Not run: wdpa_api_countries(per_page = 1) (x <- wdpa_api_countries(per_page = 1, geojson = TRUE)) x$geojson wdpa_api_countries() wdpa_api_countries(per_page = 3, page = 2) wdpa_api_countries(country_code = 'BEN') wdpa_api_countries(country_code = 'BEN', geojson = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.