{"uid":"cap_SnhcCkoT1NQO_Ft-JvrRv","slug":"geometry-openverbs-distance-calculator-fadd4006","name":"Geometry OpenVerbs Distance Calculator","description":"Euclidean, Manhattan and Chebyshev distance between two 2-D points.","url":"https://geometry.openverbs.com/v1/distance","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["from","to"],"properties":{"to":{"type":"array","items":{"type":"number"},"maxItems":2,"minItems":2,"description":"End point [x, y]."},"from":{"type":"array","items":{"type":"number"},"maxItems":2,"minItems":2,"description":"Start point [x, y]."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TUPy0xfiysZyGrNX7pAQY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes Euclidean, Manhattan, and Chebyshev distances between two 2D points in a single call.","exampleAgentPrompt":"What's the Euclidean, Manhattan, and Chebyshev distance between the points (3, 4) and (9, 12)?","exampleUseCases":[{"title":"Grid-based pathfinding cost estimation","prompt":"I'm building a grid game and need to know the Manhattan and Chebyshev distances between tile (2, 5) and tile (8, 11) so I can compare movement cost models."},{"title":"Robotics nearest-neighbor check","prompt":"My robot is at position (0, 0) and needs to reach (7, 24) — can you give me all three distance metrics so I can pick the right heuristic for the planner?"},{"title":"Data science feature engineering","prompt":"For my clustering algorithm I need the Euclidean and Chebyshev distances between data points (1.5, 3.2) and (4.8, 7.1) to compare which metric fits my dataset better."}],"resultDescription":"Returns numeric values for all three distance measures — Euclidean (straight-line), Manhattan (sum of absolute differences), and Chebyshev (maximum of absolute differences) — between the two provided 2D points.","failureModes":["Missing 'from' or 'to' fields returns a 400 validation error","Providing arrays with fewer or more than 2 numbers per point returns a schema validation error","Non-numeric values in point arrays cause a type error","Network timeouts or service unavailability return 5xx errors","Insufficient payment balance triggers an x402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need all three classic 2D distance metrics (Euclidean, Manhattan, Chebyshev) in a single lightweight call, especially useful for comparing distance models side-by-side for pathfinding, clustering heuristics, or geometric analysis without writing custom math code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T13:02:41.551Z","isFirstParty":false}