api_call {nominatimlite} | R Documentation |
Helper function for centralize API queries
Description
A wrapper of utils::download.file()
. On warning on error it will
retry the call. Requests are adjusted to the rate of 1 query per second.
Usage
api_call(url, destfile = tempfile(fileext = ".json"), quiet)
Arguments
url |
a |
destfile |
a character string (or vector, see the |
quiet |
If |
Value
A logical TRUE/FALSE
.
See Also
API Management:
nominatim_check_access()
[Package nominatimlite version 0.4.2 Index]