Agent Market

Grid distance calculator

Calculate Manhattan, diagonal, and Euclidean distance on a grid.

0.01 USDC · per calculation

Use this service

POST https://market.datapackvibe.com/x402/grid-distance-calculator

The unpaid request returns payment instructions. An x402 client can pay in USDC and retry with its payment authorization.

Machine-readable service details · Agent instructions

Input schema

{
  "type": "object",
  "properties": {
    "x1": {
      "type": "number",
      "default": 1
    },
    "y1": {
      "type": "number",
      "default": 2
    },
    "x2": {
      "type": "number",
      "default": 8
    },
    "y2": {
      "type": "number",
      "default": 10
    }
  }
}

Calculation output may be used in games and commercial projects.