R/occurrence_details.R

Defines functions occurrence_details

Documented in occurrence_details

#' Retrieve the full details of occurrence records
#'
#' Note that this makes a separate web request for each occurrence uuid, and so may not be wise to use on a large number of uuids.
#' 
#' @references Associated SBDI web service: \url{https://api.biodiversitydata.se/#ws102}
#' 
#' @param uuid string: one or more record ids, as returned by \code{\link{occurrences}} (in the \code{data$id} column)
#' @param verbose logical: show additional progress information? [default is set by sbdi_config()]
#' @return A named list (named by uuid), each element of which is a list containing the details for that uuid. This inner list will be empty if no match is found for the supplied uuid
#' @seealso \code{\link{occurrences}} \code{\link{sbdi_config}}
#' @examples
#' \dontrun{
#' s1 <- occurrence_details("f31e5f0e-f964-4bc3-b8f3-78f2ad520563")
#' str(s1,max.level=3)
#' }
#' @export occurrence_details
occurrence_details <- function(uuid, verbose = sbdi_config()$verbose) {
  
  ALA4R::occurrence_details(uuid, verbose)
  
}
biodiversitydata-se/SBDI4R documentation built on Feb. 23, 2024, 4:15 p.m.