{"uid":"cap_BYgbRNINhLns1g_7ABGJF","slug":"coco-distance-calculator-2c80647b","name":"CoCo Distance Calculator","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/tools/distance?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{"lat1":{"type":"string"},"lat2":{"type":"string"},"lon1":{"type":"string"},"lon2":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["km"],"properties":{"km":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"km":106.012,"miles":65.873,"nautical_miles":57.242,"initial_bearing_deg":340.9},"exampleNote":"Computed offline with demonstration inputs; time/random values are illustrative."},"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_uI1s0oPokC2tt5J8C6Vpt","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 geodesic distance between two geographic coordinates, returning results in kilometers, miles, nautical miles, and initial bearing.","exampleAgentPrompt":"How far apart are the coordinates 40.7128° N, 74.0060° W and 42.3601° N, 71.0589° W? Give me the distance in km, miles, and nautical miles along with the initial bearing.","exampleUseCases":[{"title":"Flight distance between two cities","prompt":"What's the straight-line distance between JFK airport at 40.6413° N, 73.7781° W and LAX at 33.9425° N, 118.4081° W? I need it in km, miles, and nautical miles with the bearing."},{"title":"Shipping route distance check","prompt":"Can you calculate the distance between the Port of Rotterdam at 51.9225° N, 4.4792° E and the Port of Singapore at 1.2644° N, 103.8222° E in nautical miles and km, and tell me the initial bearing?"},{"title":"Hiking trail start-to-end measurement","prompt":"I'm planning a hiking route. Can you tell me the distance between my trailhead at 37.8651° N, 119.5383° W and the summit at 37.9027° N, 119.4803° W in miles and km?"}],"resultDescription":"A JSON object containing the computed distance between the two coordinate pairs expressed in kilometers (km), miles, and nautical miles, plus the initial bearing in degrees from the first point toward the second.","failureModes":["Missing required query parameters (lat1, lon1, lat2, lon2) — likely returns an error or empty response","Out-of-range latitude/longitude values (e.g. lat > 90) may produce incorrect or error results","Non-numeric string values passed for coordinate parameters may cause a parsing error","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a quick, paid geodesic distance computation between two lat/lon coordinate pairs and want results in multiple units (km, miles, nautical miles) plus bearing in a single call. Ideal for lightweight geospatial calculations without requiring a full-featured mapping API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:42:16.168Z","isFirstParty":false,"canonicalSlug":"coco-distance-calculator-2c80647b"}