observation-js
Version:
A fully-typed TypeScript client for the waarneming.nl API.
20 lines (19 loc) • 789 B
TypeScript
import type { ObservationClient } from '../core/client';
import type { NiaResponse, NiaIdentifyOptions } from '../types';
export declare class Nia {
#private;
/**
* @internal
*/
constructor(client: ObservationClient);
/**
* Requests image identification from the NIA (Naturalis Image Analysis) proxy.
* This endpoint can be used anonymously (with a daily rate limit) or authenticated.
* The NIA service attempts to identify the species in the provided images.
*
* @param options - The images to identify and optional location coordinates.
* @returns A promise that resolves to the NIA identification response.
* @throws {ApiError} If the request fails.
*/
identify(options: NiaIdentifyOptions): Promise<NiaResponse>;
}