{"uid":"cap_kzFEH2qNwjeSRaW8q6vgE","slug":"toll402-geo-distance-bearing-9c353ed6","name":"Toll402 Geo Distance & Bearing","description":"The OpenRouter for AI-agent tools: one gateway, one wallet, every capability. Built-in tools, forged tools, a global verified business directory and 2,000+ aggregated x402 services, all paid per call in USDC via x402 (HTTP 402). No signup, no API key.","url":"https://toll402.dev/v1/t/geo_distance_bearing?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["lat1","lon1","lat2","lon2"],"properties":{"lat1":{"type":"number","maximum":90,"minimum":-90},"lat2":{"type":"number","maximum":90,"minimum":-90},"lon1":{"type":"number","maximum":180,"minimum":-180},"lon2":{"type":"number","maximum":180,"minimum":-180},"radiusKm":{"type":"number","minimum":0}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"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_q_WLmkzU5qGrGEy99PswW","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 and compass bearing between two geographic coordinates","exampleAgentPrompt":"What is the straight-line distance and compass bearing from New York (40.7128, -74.0060) to Los Angeles (34.0522, -118.2437)?","exampleUseCases":[{"title":"Drone delivery range check","prompt":"I need to know the distance and bearing from our warehouse at 51.5074° N, 0.1278° W to a delivery address at 51.4700° N, 0.4543° W — can you calculate that for me?"},{"title":"Ship navigation heading","prompt":"Calculate the geodesic distance and bearing from the port of Rotterdam at 51.9244° N, 4.4777° E to the port of New York at 40.6640° N, 74.0049° W so I can plan the ship's route."},{"title":"Geofencing radius validation","prompt":"How far is the customer's location at 48.8566° N, 2.3522° E from our Paris store at 48.8738° N, 2.2950° E, and in what direction — I want to check if they're within a 5 km service radius?"}],"resultDescription":"Returns a JSON object with a boolean ok field and computed values including the geodesic distance between the two coordinate pairs and the compass bearing from point 1 to point 2, likely expressed in kilometers and degrees respectively.","failureModes":["Latitude out of range (-90 to 90) returns validation error","Longitude out of range (-180 to 180) returns validation error","Missing required coordinate fields (lat1, lon1, lat2, lon2) returns 400-level error","Payment failure or insufficient USDC balance returns HTTP 402","Identical coordinates may return zero distance and undefined or zero bearing"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call geospatial computation with no API key or signup — ideal for AI agents needing one-off or low-volume distance/bearing calculations paid in USDC via x402. Prefer over self-hosted solutions when infrastructure overhead is undesirable, and over mapping APIs when you only need raw geodesic math without map rendering or routing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:30:47.497Z","isFirstParty":false,"canonicalSlug":"toll402-geo-distance-bearing-9c353ed6"}