0.1.3 • Published 3 years ago
@floralink/core v0.1.3
@floralink/core
A very small library for working with plant occurrence data, taxon specific data and taxon reference data. Contains a simple store for collected data and methods for calculating statistics. A final data structure is yet to be described. This documentation will be enriched when the library has reached a stable concept.
Setup
You can install the Floralink core library with npm:
npm install @floralink/coreThen, in your project:
import * as floralink from "@floralink/core";Methods
Data sources (Store)
initializePlugin(plugin, credentials);getOccurrenceData(provider, query);getTaxonDataByID(taxonIDs, pluginID);getTaxonSpecific(taxonIDs, pluginID);Type Conversions
convertToTaxonOccurrenceData(occurrenceData);Statistics
getOccurrenceStatistics(occurrenceData);getTaxonOccurrenceStatistics(taxonOccurrenceData, occurrenceData);getTaxonSpecificStatistics(taxonSpecificPlugin, taxonSpecificData, filterIDs);