Skip to content

Extremely slow downloading times for get_gbif #18

@tif-calin

Description

@tif-calin

Hello, and thank you SO MUCH for making this incredible library. I've been making range maps with it for a hobby project.

One issue I keep coming across is the extreme slowness of the get_gbif() function. I sometimes even get this response from GBIF:

 Attempt 1 ... 
 ----------------- 16.39 %...[1] "Error : [
  \"This is not an efficient way to retrieve this data, please slow down or stop your script.\",
  \"Check the API documentation <https://techdocs.gbif.org/en/openapi/> for a more efficient way, for example using the Occurrence Download API to download data in bulk.\",
  \"We can also provide data about downloads, datasets, citations and so on in CSV or some other format, please contact helpdesk@gbif.org.\"
]\n"

This is mainly problematic for any species that has a ton of observations. For example,

obs.species <- get_gbif(sp_name = "Anas platyrhynchos")

has been running for two days now :(

Is there anything that can be done to speed this up? I see that the source code sets it to sleep for 2 seconds while it loops. Is this necessary?

I am trying to make maps for birds that look like this:

Photos

Any help would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions