REQUEST
Array of job ids.
Number of regions/clusters to split all jobs ids into.
The maximum number of jobs per cluster.
Assignment method:
distance
, zones
, or size
.RESPONSE
Status code.
0
indicates success.An array of cluster objects, each containing:
id
(number): Unique cluster identifiername
(string): Cluster name (e.g., “Cluster 1”, “Cluster 2”)center_lat
(double): Latitude of cluster center pointcenter_lng
(double): Longitude of cluster center pointjobs
(array): Array of job IDs assigned to this cluster
Usage Notes
- The clustering algorithm groups jobs geographically to minimize travel distance within each cluster
- The
max
parameter prevents any single cluster from becoming too large - Empty clusters may be returned if the number of jobs is less than the requested regions
- The algorithm uses the company location as the initial center point for all clusters