spatial-nearest-point
Installation
SKILL.md
Nearest point in a set
spatial.nearest-point on https://fittings.sh. One endpoint, deterministic compute.
The closest candidate coordinate to a query point, with great-circle distance and initial bearing.
The call
POST https://fittings.sh/v1/spatial/nearest-point
| Field | Type | Required | Notes |
|---|---|---|---|
point |
object | yes | {lat, lon} or GeoJSON [longitude, latitude] |
candidates |
array | yes | Up to 5000 points, each {lat, lon, id?} or [longitude, latitude] |
Example input: