{"uid":"cap_wRIurHZHwUs-Tj9SyWCox","slug":"haversine-coordinates-distance-bearing-calculator-663bc008","name":"Haversine Coordinates Distance & Bearing Calculator","description":"Computes straight-line haversine distance and compass bearing between any two latitude/longitude points, returned in km, miles, and nautical miles. Useful for geofencing checks, travel-time estimation inputs, and mapping agents working from raw coordinate pairs rather than place names.","url":"https://x402.forgemesh.io/coordinates-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_jtYzfG4HKEgjpGEt-uSZV","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 straight-line haversine distance and compass bearing between two lat/lon coordinate pairs, returning results in km, miles, and nautical miles.","exampleAgentPrompt":"What's the straight-line distance and compass bearing between coordinates 40.7128, -74.0060 and 51.5074, -0.1278? Give me the result in km, miles, and nautical miles.","exampleUseCases":null,"resultDescription":"Returns the haversine (great-circle) straight-line distance between the two coordinate pairs expressed in kilometers, miles, and nautical miles, along with the compass bearing from point 1 to point 2.","failureModes":["Missing or malformed lat/lon values result in a validation error","Out-of-range coordinate values (e.g. lat outside -90 to 90) may cause errors","Non-numeric strings passed for coordinate fields will fail parsing","Identical coordinates may return zero distance and undefined or zero bearing","Payment failure or insufficient USDC balance returns a 402 error"],"whenToPreferThis":"Use this endpoint when you have raw latitude/longitude coordinate pairs and need fast, accurate straight-line distance and bearing calculations without geocoding overhead. Ideal for geofencing checks, routing pre-filters, travel-time estimation inputs, or any mapping agent that already has coordinates rather than place names.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:57:32.104Z","isFirstParty":false}