{"uid":"cap_zK7V0gqNzohTx3hcf1KuW","slug":"forgemesh-distance-calculator-2ded60dc","name":"ForgeMesh Distance Calculator","description":"Distance calculator API: great-circle (haversine) distance between two coordinates in km, miles, and nautical miles, plus initial compass bearing. Deterministic and auditable — cheaper than burning reasoning tokens, zero arithmetic-hallucination risk, and the result can be cited. For logistics, travel, delivery, and geo agents. Pairs with /geocode-city for name inputs.","url":"https://x402.forgemesh.io/distance-between","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lat1":{"type":"string"},"lat2":{"type":"string"},"lon1":{"type":"string"},"lon2":{"type":"string"}}},"responseSchema":{"type":"json","example":{"km":2281.55,"miles":1417.7,"initial_bearing_deg":51.5}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-XJrjHVZn1J4E03Oktfcr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates great-circle (haversine) distance between two geographic coordinates in km, miles, and nautical miles, plus the initial compass bearing","exampleAgentPrompt":"What's the straight-line distance and initial compass bearing between coordinates 40.7128° N, 74.0060° W (New York) and 51.5074° N, 0.1278° W (London)? Give me the result in km, miles, and nautical miles.","exampleUseCases":null,"resultDescription":"Returns the great-circle distance between the two coordinate pairs in three units (kilometers, miles, nautical miles) plus the initial compass bearing in degrees — fully deterministic and citable, with no arithmetic approximation.","failureModes":["Missing or non-numeric lat/lon values return a validation error","Coordinates out of valid range (lat beyond ±90, lon beyond ±180) may return an error or incorrect result","Identical input coordinates return zero distance and undefined or arbitrary bearing","Payment failure or insufficient USDC balance blocks the call with a 402 response"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, auditable great-circle distance computation between two known coordinate pairs — especially in logistics, delivery routing, travel estimation, or any context where arithmetic hallucination from LLM reasoning would be unacceptable. Pair with the /geocode-city sibling endpoint when starting from city names rather than raw coordinates. Prefer over LLM self-computation whenever citability or correctness guarantees matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:08:29.611Z","isFirstParty":false}