PoisotLab / GBIF.jl

Functions and types to access GBIF data from Julia
https://ecojulia.github.io/GBIF.jl/latest/
Other
19 stars 4 forks source link

[WIP] Use pairs instead of a dictionary for queries #19

Closed tpoisot closed 4 years ago

tpoisot commented 5 years ago

This pull request adds support for query options as pairs instead of a dictionary, so for example

occurrences(Dict("country" => "ES", "hasCoordinates" => true))

should now be written as

occurrences("country" => "ES", "hasCoordinates" => true)

In addition, the complete! method is removed (this can be done with a loop), and the next! method is now occurrences! applied to a GBIFRecords.

Some additional small issues with filters have been fixed, and the function to query occurrences based on taxon objects has been improved. All in all, this reduces the number of functions required to use the package (pretty much just taxon and occurrences now).

:arrow_right: when merged, this will close #16