{"uid":"cap_SzUcegziUu4-96shPeACf","slug":"agentstoolshub-geo-distance-calculator-1367f056","name":"AgentsToolsHub Geo Distance Calculator","description":"Great-circle (haversine) distance between two latitude/longitude points in km, miles and nautical miles, plus initial bearing and the geographic midpoint. Deterministic spherical math on the IUGG mean Earth radius. Use this when an agent needs to great-circle distance and bearing between coordinates.","url":"https://agentstoolshub.com/api/v1/geo-time/distance-calculator?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["lat1","lon1","lat2","lon2"],"properties":{"lat1":{"type":"number","description":"Latitude 1"},"lat2":{"type":"number","description":"Latitude 2"},"lon1":{"type":"number","description":"Longitude 1"},"lon2":{"type":"number","description":"Longitude 2"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0X7k8WqunuqUH5n5X9bbc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes great-circle (haversine) distance in km, miles, and nautical miles between two lat/lon points, plus initial bearing and geographic midpoint","exampleAgentPrompt":"What is the great-circle distance in kilometers, miles, and nautical miles between New York City (40.7128, -74.0060) and London (51.5074, -0.1278), and what's the initial bearing and midpoint?","exampleUseCases":[{"title":"Flight distance estimation tool","prompt":"Can you calculate the great-circle distance between Los Angeles (34.0522, -118.2437) and Tokyo (35.6762, 139.6503) in kilometers, miles, and nautical miles, and give me the initial bearing?"},{"title":"Shipping route midpoint planning","prompt":"Find the geographic midpoint and great-circle distance in nautical miles between Miami (25.7617, -80.1918) and Lisbon (38.7223, -9.1393) — I'm planning a transatlantic shipping route."},{"title":"Drone delivery range check","prompt":"What's the straight-line distance in kilometers and the bearing from our warehouse at 51.5074, -0.1278 to the delivery point at 51.5200, -0.0900? I need to check if it's within our drone's range."}],"resultDescription":"Returns the great-circle (haversine) distance between the two coordinates expressed in kilometers, miles, and nautical miles, along with the initial compass bearing (in degrees) from point 1 to point 2, and the geographic midpoint coordinates — all computed using deterministic spherical math on the IUGG mean Earth radius.","failureModes":["Missing required query parameters (lat1, lon1, lat2, lon2) returns a 400 error","Latitude values outside [-90, 90] or longitude values outside [-180, 180] may cause invalid results or errors","Non-numeric coordinate values will cause a parameter validation error","Payment failure or insufficient USDC balance may block the request under x402 protocol"],"whenToPreferThis":"Choose this endpoint when you need deterministic, spherical-Earth great-circle distance calculations between two coordinate pairs in multiple units simultaneously (km, miles, nautical miles), along with bearing and midpoint — all in a single call. Prefer it over mapping APIs when you don't need routing or road distance, just pure geodesic geometry.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:40:56.135Z","isFirstParty":false,"canonicalSlug":"agentstoolshub-geo-distance-calculator-1367f056"}