wdpa_api_pa | R Documentation |
WDPA API: protected areas
wdpa_api_pa(wdpa_id = NULL, geojson = FALSE, page = 1, per_page = 25, token = NULL, ...)
wdpa_id |
(character) WDPA protected area 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_pa(per_page = 1) (x <- wdpa_api_pa(per_page = 1, geojson = TRUE)) x$geojson wdpa_api_pa(per_page = 3, page = 2) wdpa_api_pa(wdpa_id = 322152) (x <- wdpa_api_pa(wdpa_id = 322152, geojson = TRUE)) x$geojson ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.