Route Optimization · Distance Matrix
Build a haversine distance and estimated duration matrix from caller coordinates with optional circuity and speed. Docs: https://www.brainiac.software/api/route-optimization/distance-matrix
POST https://www.brainiac.software/api/v1/route-optimization/distance-matrix
0.02 USDC on Base · payTo 0x6428665E83F503904571104311bB78CBb29b975c
Status: verified · payable
Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.
Settlement: direct to the seller's payTo — 0% HIVE402 take
Payment routes
{
"circuity": 1,
"locations": [
{
"id": "london",
"lat": 51.5074,
"lon": -0.1278
},
{
"id": "paris",
"lat": 48.8566,
"lon": 2.3522
}
],
"speedKph": 80
}{
"distancesM": [
[
0,
343557
],
[
343557,
0
]
],
"durationsS": [
[
0,
15460
],
[
15460,
0
]
],
"estimate": true,
"ids": [
"london",
"paris"
],
"limitations": [
"Haversine with IUGG mean radius 6,371,008.8 m; duration = distance / (speedKph/3.6), rounded to whole metres/seconds.",
"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"
}
]
}Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Sellers · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human store: human checkout, card & crypto · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | pending / 100 · breakdown |
|---|---|
| Probe uptime (30d) | — over 0 probes · daily |
| Avg 402 latency | — ms |
| Paid calls (30d, on-chain) | 0 calls · 0 buyers |
How to call
POST https://www.brainiac.software/api/v1/route-optimization/distance-matrix · input in body · spec from live-challenge
Input schema
{
"type": "object",
"properties": {
"locations": {
"type": "array",
"items": {
"type": "object"
},
"description": "locations supplied by the caller for this operation.",
"example": [
{
"id": "london",
"lat": 51.5074,
"lon": -0.1278
},
{
"id": "paris",
"lat": 48.8566,
"lon": 2.3522
}
]
},
"circuity": {
"type": "number",
"minimum": 1,
"maximum": 3,
"description": "circuity supplied by the caller for this operation.",
"example": 1
},
"speedKph": {
"type": "number",
"description": "speed Kph supplied by the caller for this operation.",
"example": 80
},
"speedMps": {
"type": "number",
"description": "speed Mps supplied by the caller for this operation."
}
},
"required": [
"locations"
],
"additionalProperties": false
}Output schema
{
"type": "object",
"additionalProperties": true,
"properties": {
"ids": {
"type": "array",
"description": "ids returned by this operation."
},
"distancesM": {
"type": "array",
"description": "distances M returned by this operation."
},
"durationsS": {
"type": "array",
"description": "durations S returned by this operation."
},
"estimate": {
"type": "boolean",
"description": "estimate returned by this operation."
},
"sources": {
"type": "array",
"description": "Provenance only — upstream name, url, and retrievedAt when available.",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"source": {
"type": "string",
"description": "Named upstream source for this delayed reference series."
},
"url": {
"type": "string",
"description": "Requested public URL."
},
"retrievedAt": {
"type": "string",
"description": "ISO-8601 timestamp when upstream data was retrieved."
},
"status": {
"type": "string",
"description": "Coverage status: complete or partial with real data is charged on HTTP 2xx; failed or empty payloads return non-2xx and are not charged."
}
}
}
},
"limitations": {
"type": "array",
"description": "Product caveats. Absence of a signal is not a safety approval."
}
}
}curl -i -X POST 'https://www.brainiac.software/api/v1/route-optimization/distance-matrix' \
-H 'content-type: application/json' -d '{"locations":[{"id":"london","lat":51.5074,"lon":-0.1278},{"id":"paris","lat":48.8566,"lon":2.3522}],"circuity":1,"speedKph":80}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs