{"uid":"cap_-RsKoi_FPLGGmgSrNF5V3","slug":"haversine-distance-calculator-x402-forgemesh-io-65cffddf","name":"Haversine Distance Calculator (x402.forgemesh.io)","description":"Coordinate distance API: great-circle distance between two lat/lon points in km, miles, and nautical miles, plus initial compass bearing. Exact geodesy.","url":"https://x402.forgemesh.io/haversine-distance","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_zKe544ht-_e8E_nVvOYFs","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":"Computes the great-circle distance between two geographic coordinates in km, miles, and nautical miles, plus the initial compass bearing.","exampleAgentPrompt":"What is the great-circle distance and initial bearing between 40.7128° N, 74.0060° W (New York City) and 51.5074° N, 0.1278° W (London)? Give me the result in kilometers, miles, and nautical miles.","exampleUseCases":null,"resultDescription":"Returns the exact geodesic distance between two lat/lon coordinate pairs expressed in three units (kilometers, miles, and nautical miles), along with the initial compass bearing from the first point to the second.","failureModes":["Missing or invalid lat/lon values (e.g. out-of-range coordinates) return an error","Coordinates passed as malformed strings (non-numeric) cause parsing failures","Identical coordinates may return zero distance with undefined bearing","Payment not provided or insufficient USDC results in HTTP 402 rejection"],"whenToPreferThis":"Choose this endpoint when you need precise geodesic (great-circle) distance between two coordinate pairs in multiple units simultaneously, especially when nautical miles or compass bearing are also required. Prefer it over rough Euclidean or planar approximations when accuracy matters for navigation, logistics, or geographic analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:58:49.409Z","isFirstParty":false}