{"slug":"www-brainiac-software-api-v1-route-optimization-territory-cl-0bdba3","title":"Split stops into k balanced, compact territories with capacitated k-means and im","host":"www.brainiac.software","method":"POST","resource":"https://www.brainiac.software/api/v1/route-optimization/territory-cluster","category":"other","description":"Split stops into k balanced, compact territories with capacitated k-means and imbalance limits. Docs: https://www.brainiac.software/api/route-optimization/territory-cluster","price_listed":0.03,"price_asked":0.03,"state":"answering","state_label":"Answering","checks_7d":5,"answered_7d":5,"latency_ms_median":311,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"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":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"balanceBy":{"description":"balance By supplied by the caller for this operation.","enum":["count","weight"],"example":"weight","type":"string"},"k":{"description":"k supplied by the caller for this operation.","example":2,"maximum":500,"minimum":1,"type":"integer"},"matrixFromPoints":{"description":"matrix From Points supplied by the caller for this operation.","enum":["euclidean","haversine"],"example":"euclidean","type":"string"},"maxImbalance":{"description":"max Imbalance supplied by the caller for this operation.","example":0.1,"maximum":1,"minimum":0,"type":"number"},"seed":{"description":"seed supplied by the caller for this operation.","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"stops":{"description":"stops supplied by the caller for this operation.","example":[{"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}],"items":{"type":"object"},"type":"array"}},"required":["stops","k"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":298,"error":null},{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":311,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":349,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":333,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":308,"error":null}],"description_full":"Split stops into k balanced, compact territories with capacitated k-means and imbalance limits. Docs: https://www.brainiac.software/api/route-optimization/territory-cluster","last_updated":"2026-11-24T15:08:03.268Z","schemes":["exact"]}