{"uid":"cap_dOlw3EgcJ3O5IEC-FM68S","slug":"fittings-sh-geo-distance-878d3599","name":"fittings.sh Geo Distance","description":"Distance in meters and initial bearing in degrees between two WGS-84 coordinate pairs.","url":"https://fittings.sh/v1/geo/distance","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":["fromLat","fromLon","toLat","toLon"],"properties":{"toLat":{"type":"number"},"toLon":{"type":"number"},"fromLat":{"type":"number"},"fromLon":{"type":"number"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CiFrl_tJasuYo8pZFpgp3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the geodesic distance in meters and initial bearing in degrees between two WGS-84 coordinate pairs.","exampleAgentPrompt":"How far apart are the coordinates 40.7128, -74.0060 (New York City) and 51.5074, -0.1278 (London), and what's the initial bearing I'd need to travel from New York to London?","exampleUseCases":[{"title":"Delivery route distance check","prompt":"How far is it in meters from the warehouse at 37.7749, -122.4194 to the delivery address at 37.3382, -121.8863, and what's the bearing I should head from the warehouse?"},{"title":"Drone flight path planning","prompt":"I need to plan a drone flight from 48.8566, 2.3522 to 48.8738, 2.2950 — can you tell me the straight-line distance in meters and the initial bearing so I can program the heading?"},{"title":"Geofence proximity check","prompt":"A vehicle is currently at 51.5074, -0.1278 and our depot is at 51.4816, -0.4610 — how many meters away is the vehicle from the depot, and what direction is the depot from the vehicle?"}],"resultDescription":"Returns the great-circle (geodesic) distance in meters between the two WGS-84 coordinate pairs, along with the initial bearing in degrees (0–360) measured clockwise from north at the origin point toward the destination.","failureModes":["Missing required query parameters (fromLat, fromLon, toLat, toLon) returns a 400 error","Coordinates outside valid WGS-84 range (lat ±90, lon ±180) may return an error or unexpected result","Payment not provided or insufficient USDC causes a 402 Payment Required response","Network timeout if the service is temporarily unavailable"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost geodesic distance and initial bearing between two coordinate pairs without the overhead of a full routing or mapping API. It is ideal for straight-line (crow-flies) distance calculations using WGS-84 coordinates and does not require map data, road networks, or additional geospatial context. Prefer it over geocoding endpoints (which resolve addresses to coordinates) or routing APIs (which compute road-based distances and turn-by-turn directions).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:59:21.996Z","isFirstParty":false}