{"uid":"cap_t7RuDvpCJJQ4YO-xdVZOa","slug":"initial-bearing-calculator-1ae50056","name":"Initial Bearing Calculator","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/geometry/initial-bearing?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lat1":{"type":"number","maximum":90,"minimum":-90,"description":"Latitude in decimal degrees."},"lat2":{"type":"number","maximum":90,"minimum":-90,"description":"Latitude in decimal degrees."},"lon1":{"type":"number","maximum":180,"minimum":-180,"description":"Longitude in decimal degrees."},"lon2":{"type":"number","maximum":180,"minimum":-180,"description":"Longitude in decimal degrees."}}},"responseSchema":{"type":"json","example":{"degrees":90}},"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_FFqrMBljI3jF7nIEz1ydY","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 initial compass bearing (in degrees) from one geographic coordinate to another using geodesic geometry.","exampleAgentPrompt":"What's the initial bearing from coordinates 40.7128° N, 74.0060° W (New York) to 51.5074° N, 0.1278° W (London)?","exampleUseCases":[{"title":"Flight path heading calculation","prompt":"What's the initial bearing I'd need to fly from Los Angeles (lat 34.0522, lon -118.2437) to Tokyo (lat 35.6762, lon 139.6503)?"},{"title":"Maritime navigation course setting","prompt":"I'm departing from Miami at latitude 25.7617, longitude -80.1918 and heading to Nassau at latitude 25.0480, longitude -77.3554 — what's my initial compass bearing?"},{"title":"Drone waypoint direction check","prompt":"My drone starts at lat 51.5074, lon -0.1278 and needs to reach lat 48.8566, lon 2.3522 — what initial bearing should it fly?"}],"resultDescription":"Returns a JSON object with a single 'degrees' field containing the initial bearing as a numeric value between 0 and 360, representing the compass angle from the first coordinate to the second (e.g. {\"degrees\": 90}).","failureModes":["Missing or out-of-range latitude/longitude values (lat outside -90 to 90, lon outside -180 to 180) will likely result in a validation error","Identical start and end coordinates may return undefined or 0 bearing","Payment failure or insufficient USDC balance may block the request via x402 protocol","Server-side Cloudflare Worker cold start or quota exhaustion may cause timeout or 402/503 responses"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.001 USDC) programmatic computation of the initial geodesic bearing between two decimal-degree coordinates and don't want to implement the haversine/bearing formula yourself. Ideal for navigation apps, drone routing, logistics, or any agent workflow requiring directional heading as part of a larger geospatial pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:42:11.740Z","isFirstParty":false,"canonicalSlug":"initial-bearing-calculator-1ae50056"}