Cluster points
cluster_pointsGroup geographic points into clusters using seeded k-means or DBSCAN, returning centroids, sizes, and member points.
Instructions
Group geographic points with deterministic k-means (seeded) or DBSCAN (epsKm radius). Returns clusters with size, centroid (date-line safe) and member points; DBSCAN noise is returned as a cluster with noise=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of clusters (required for kmeans). Reduced to the number of distinct points if larger | |
| seed | No | Random seed that makes kmeans deterministic | |
| epsKm | No | Neighborhood radius in km (required for dbscan) | |
| minPts | No | Minimum neighbors including the point itself for a dbscan core point. Default 2 | |
| points | Yes | Points to cluster (1-500) | |
| algorithm | Yes | kmeans = k clusters; dbscan = density clusters within epsKm, isolated points returned as noise |