Map the distribution of species x over time using NBN atlas data
Get the data from the NBN atlas API (aka webservice)
library(needs)needs(tidyverse, jsonlite, sf, mapview, tictoc, ggspatial)search <-"https://records-ws.nbnatlas.org/occurrences/search?q=*:*&fq=genus:Falco&lat=51.5&lon=0.127&radius=300&pageSize=30000"# Set the base URL for the NBN Atlas web service.tic()df <-fromJSON(search, simplifyDataFrame =TRUE)toc()