ControlledTermController#
- class pyinaturalist.controllers.ControlledTermController(*args, **kwargs)#
Bases:
BaseController
Controller for ControlledTerm and Annotation requests
Methods
- __init__(*args, **kwargs)#
- all(**params)#
List controlled terms and their possible values
- Return type:
Notes
API reference: GET /controlled_terms
- for_taxon(taxon_id, **params)#
List controlled terms that are valid for the specified taxon.
Notes
API reference: GET /controlled_terms/for_taxon
- Parameters:
taxon_id (
int
) – ID of taxon to get controlled terms for- Return type:
- lookup(annotations)#
Fill in missing information for the specified annotations. If only term and value IDs are present, this will look up, cache, and add complete controlled term details.
- Parameters:
annotations (
List
[Annotation
]) – Observation annotations- Return type:
- Returns:
Annotation objects with
controlled_attribute
andcontrolled_value
populated