← Back to directory

Split stops into k balanced, compact territories with capacitated k-means and im...

https://www.brainiac.software/api/v1/route-optimization/territory-cluster

Overview

Split stops into k balanced, compact territories with capacitated k-means and imbalance limits. Docs: https://www.brainiac.software/api/route-optimization/territory-cluster

Protocol x402 (POST)
Price $0.03
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Balanced Territory Clustering
Source bazaar
Indexed 2026-11-24 19:01:01

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "balanceBy": "weight", "k": 2, "matrixFromPoints": "euclidean", "maxImbalance": 0.1, "stops": [ { "id": "1", "weight": 1, "x": 0, "y": 0 }, { "id": "2", "weight": 1, "x": 1, "y": 0 }, { "id": "3", "weight": 1, "x": 0, "y": 1 }, { "id": "4", "weight": 1, "x": 1, "y": 1 }, { "id": "5", "weight": 1, "x": 10, "y": 10 }, { "id": "6", "weight": 1, "x": 11, "y": 10 }, { "id": "7", "weight": 1, "x": 10, "y": 11 }, { "id": "8", "weight": 1, "x": 11, "y": 11 } ] }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "imbalance": 0, "limitations": [ "Capacitated k-means with k-means++ (mulberry32) initialisation and capacity mean×(1±maxImbalance).", "Outputs are route and delivery calculations for human review. They are not legal, customs, tax, medical or identity det" ], "sources": [ { "retrievedAt": "2026-11-14", "source": "Caller-supplied coordinates or distance/duration matrices processed locally", "status": "ok", "url": "https://www.brainiac.software/api/v1/route-optimization" } ], "territories": [ { "centroid": [ 0.5, 0.5 ], "id": 0, "size": 4, "stops": [ "1", "2" ] }, { "centroid": [ 10.5, 10.5 ], "id": 1, "size": 4, "stops": [ "5", "6" ] } ], "withinSse": 4 }, "type": "json" }