## Not run:
# apikey <- getOption("g_elevation_api")
# key <- name_suggest('Puma concolor')$key[1]
# dat <- occ_search(taxonKey=key, return='data', limit=300, hasCoordinate=TRUE)
# head( elevation(dat, key = apikey) )
#
# # Pass in a vector of lat's and a vector of long's
# elevation(latitude=dat$decimalLatitude, longitude=dat$decimalLongitude, key = apikey)
#
# # Pass in lat/long pairs in a single vector
# pairs <- list(c(31.8496,-110.576060), c(29.15503,-103.59828))
# elevation(latlong=pairs, key = apikey)
#
# # Pass on options to httr
# library('httr')
# pairs <- list(c(31.8496,-110.576060), c(29.15503,-103.59828))
# elevation(latlong=pairs, config=verbose(), key = apikey)
# ## End(Not run)
Run the code above in your browser using DataLab