← Market

Route Optimization · Geofence Check

Test points against GeoJSON service zones with holes, reporting inside/in-hole status and nearest boundary distance. Docs: https://www.brainiac.software/api/route-optimization/geofence-check

POST https://www.brainiac.software/api/v1/route-optimization/geofence-check

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

Base · 0.02 USDC · payTo 0x6428665E83F503904571104311bB78CBb29b975c · via cdp · settles direct
{
  "points": [
    {
      "id": "p1",
      "lat": 0.2,
      "lon": 0.2
    },
    {
      "id": "p2",
      "lat": 0.5,
      "lon": 0.5
    },
    {
      "id": "p3",
      "lat": 0.5,
      "lon": 1.5
    }
  ],
  "zones": {
    "features": [
      {
        "geometry": {
          "coordinates": [
            [
              [
                0,
                0
              ],
              [
                0,
                1
              ],
              [
                1,
                1
              ],
              [
                1,
                0
              ],
              [
                0,
                0
              ]
            ],
            [
              [
                0.4,
                0.4
              ],
              [
                0.4,
                0.6
              ],
              [
                0.6,
                0.6
              ],
              [
                0.6,
                0.4
              ],
              [
                0.4,
                0.4
              ]
            ]
          ],
          "type": "Polygon"
        },
        "properties": {
          "id": "zone1"
        },
        "type": "Feature"
      }
    ],
    "type": "FeatureCollection"
  }
}
{
  "limitations": [
    "GeoJSON RFC 7946 point-in-polygon (even-odd) with holes; boundary distance uses great-circle cross-track formulas.",
    "Outputs are route and delivery calculations for human review. They are not legal, customs, tax, medical or identity det"
  ],
  "results": [
    {
      "inside": [
        "zone1"
      ],
      "nearestBoundaryM": 22238.88,
      "point": "p1"
    },
    {
      "inHoleOf": [
        "zone1"
      ],
      "inside": [],
      "nearestBoundaryM": 11119.08,
      "nearestZone": "zone1",
      "point": "p2"
    }
  ],
  "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 badge

Trust scorepending / 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/geofence-check · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "properties": {
    "zones": {
      "type": "object",
      "description": "zones supplied by the caller for this operation.",
      "example": {
        "type": "FeatureCollection",
        "features": [
          {
            "type": "Feature",
            "properties": {
              "id": "zone1"
            },
            "geometry": {
              "type": "Polygon",
              "coordinates": [
                [
                  [
                    0,
                    0
                  ],
                  [
                    0,
                    1
                  ],
                  [
                    1,
                    1
                  ],
                  [
                    1,
                    0
                  ],
                  [
                    0,
                    0
                  ]
                ],
                [
                  [
                    0.4,
                    0.4
                  ],
                  [
                    0.4,
                    0.6
                  ],
                  [
                    0.6,
                    0.6
                  ],
                  [
                    0.6,
                    0.4
                  ],
                  [
                    0.4,
                    0.4
                  ]
                ]
              ]
            }
          }
        ]
      }
    },
    "points": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "points supplied by the caller for this operation.",
      "example": [
        {
          "id": "p1",
          "lon": 0.2,
          "lat": 0.2
        },
        {
          "id": "p2",
          "lon": 0.5,
          "lat": 0.5
        },
        {
          "id": "p3",
          "lon": 1.5,
          "lat": 0.5
        }
      ]
    }
  },
  "required": [
    "zones",
    "points"
  ],
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "results": {
      "type": "array",
      "description": "results returned by this operation.",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "point": {
            "type": "string",
            "description": "point returned by this operation."
          },
          "inside": {
            "type": "array",
            "description": "inside returned by this operation."
          },
          "nearestBoundaryM": {
            "type": "number",
            "description": "nearest Boundary M 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/geofence-check' \
  -H 'content-type: application/json' -d '{"zones":{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"id":"zone1"},"geometry":{"type":"Polygon","coordinates":[[[0,0],[0,1],[1,1],[1,0],[0,0]],[[0.4,0.4],[0.4,0.6],[0.6,0.6],[0.6,0.4],[0.4,0.4]]]}}]},"points":[{"id":"p1","lon":0.2,"lat":0.2},{"id":"p2","lon":0.5,"lat":0.5},{"id":"p3","lon":1.5,"lat":0.5}]}'

Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs

Try it (your wallet signs; HIVE402 never holds funds)