{"uid":"cap_atXti-dnPQc0TFiMzd3w5","slug":"gps-distance-bearing-calculator-0dcb7a6f","name":"GPS Distance & Bearing Calculator","description":"Calculates the great-circle distance between two GPS coordinates in kilometers, miles, and nautical miles, plus the initial compass bearing from point A to point B. For delivery routing, flight-distance estimates, and logistics agents that need an exact figure rather than an eyeballed map distance.","url":"https://x402.forgemesh.io/gps-distance-calculator","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_4IimPHp_EHoRP4ZEyS6ZV","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 the great-circle distance between two GPS coordinates in kilometers, miles, and nautical miles, plus the initial compass bearing from point A to point B.","exampleAgentPrompt":"What's the exact great-circle distance and initial bearing from 40.7128° N, 74.0060° W (New York) to 51.5074° N, 0.1278° W (London)?","exampleUseCases":null,"resultDescription":"Returns the great-circle distance between the two GPS coordinates expressed in kilometers, miles, and nautical miles, along with the initial compass bearing (in degrees) from point A to point B.","failureModes":["Missing or invalid latitude/longitude values — returns an error if any of the four coordinates are absent or non-numeric","Out-of-range coordinates (latitude outside -90 to 90, longitude outside -180 to 180) may return an error or unexpected result","Both points identical — may return zero distance and undefined bearing","Payment failure — x402 micropayment not completed, returns 402 response"],"whenToPreferThis":"Use this endpoint when you need a precise geodesic (great-circle) distance and directional bearing between two known GPS coordinates, especially for logistics routing, flight-distance estimation, delivery cost calculation, or any agent workflow that requires an exact numeric distance rather than an approximation. It returns results in all three common distance units simultaneously, saving conversion steps.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:58:18.210Z","isFirstParty":false}