Hmm, this BasisOfRecord (GBIF Common :: API 1.12.11 API) seemed promising LIVING_SPECIMEN
- as description says
An occurrence record describing a living specimen, e.g. managed animals in a zoo or cultivated plants in a garden.
but
http://api.gbif.org/v1/occurrence/search?basisOfRecord=LIVING_SPECIMEN&taxonKey=2812559
and
http://api.gbif.org/v1/occurrence/search?basisOfRecord=PRESERVED_SPECIMEN&taxonKey=2812559
Of two records for your example taxon, one http://api.gbif.org/v1/occurrence/1056251124 is _ PRESERVED_SPECIMEN_, while the other is http://api.gbif.org/v1/occurrence/614602797 _ LIVING_SPECIMEN_, but both are cultivated, right?
In this case it turns out to be the correct country, but if you did want to check if lat/long values matched the stated country in the record, I am working on cleaning tools in scrubr
, e.g., scrubr::coord_within()