Batch nearest neighbor
Find nearest features for multiple points against a single dataset. Points can be provided in the request body or referenced from an existing point dataset via the points_* parameters.
Request
- Base URL: https://api.terranode.co
- URL: https://api.terranode.co/v1/nearest/batch
- Auth: API key in header x-api-key
Query parameters
System dataset slug (e.g., "us-counties"). Exactly one of system_dataset, dataset, or dataset_id is required.
User dataset slug. Exactly one of system_dataset, dataset, or dataset_id is required.
User dataset UUID. Exactly one of system_dataset, dataset, or dataset_id is required.
Specific dataset version to query. Defaults to the latest version.
Number of nearest features to return (max 20).
Maximum search radius in meters (max 500,000 m / 500 km).
Response output format.
Set to "true" to submit as an asynchronous batch job. Returns a job ID for polling via GET /v1/jobs/{job_id}.
URL to receive a webhook notification when the async job completes.
System dataset slug to use as the point source instead of the request body. The referenced dataset must contain Point geometries.
User dataset slug to use as the point source instead of the request body. The referenced dataset must contain Point geometries.
User dataset UUID to use as the point source instead of the request body. The referenced dataset must contain Point geometries.
Request body
Response
Synchronous batch result.
Changes
No recorded changes to this operation across all 1 revision of this API.