buildURL: API URL builder

View source: R/buildURL.R

buildURLR Documentation

API URL builder

Description

This function builds a URL for the PlantNet API using the various elements required.

Usage

buildURL(key, imageURL, organs = "auto", lang = "en", no_reject = "false")

Arguments

key

character, your API key (get from my-api.plantnet.org)

imageURL

character, the URL path top the image you want to identify

organs

character, the organ in the image. Must be one of, auto, leaf, flower, fruit, or bark. Currently this does not effect the result. You can also use the tags habit (the overall form of the plant), or other, but you can only have an image labelled as one of these if you also have an image labelled as one of the primary organs (i.e. auto, leaf, flower, fruit, bark).

lang

can be one of 'en' (English), 'fr' (French), 'de' (German)

no_reject

character, can be one of 'true' or 'false' (default), if 'true' 'no results' are disabled in case of reject class match

Value

The URL required, as a character of length 1


BiologicalRecordsCentre/plantnet documentation built on April 1, 2022, 12:25 a.m.