{"uid":"cap_vcljoEEARF1vOOptXnl_k","slug":"saylor-innovations-route-distance-calculator-8e6277ad","name":"Saylor Innovations Route Distance Calculator","description":"Total distance of a multi-stop route from waypoints in km, miles and nautical miles, with each great-circle leg, bearing, detour ratio and travel time","url":"https://saylorinnovations.com/api/geo/route-distance?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":["waypoints"],"properties":{"speed_kmh":{"type":"string","description":"optional average speed to estimate travel time"},"waypoints":{"type":"string","description":"Stops in order, written lat,lon;lat,lon;... (2-50)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["total_km","legs"],"properties":{"legs":{"type":"array","items":{"type":"object","properties":{"km":{"type":["number","null"],"description":"Leg length in kilometres"},"to":{"description":"End of the range"},"from":{"description":"Start of the range"},"miles":{"type":["number","null"],"description":"Leg length in miles"},"initial_bearing_deg":{"description":"Initial bearing, in degrees"}}},"description":"Each leg with from, to, distance in km and miles and initial bearing"},"note":{"type":"string","description":"Caveat or context for reading the result"},"source":{"type":"string","description":"Data source the values come from"},"total_km":{"type":"number","description":"Total km"},"waypoints":{"type":"number","description":"Number of waypoints"},"total_miles":{"type":"number","description":"Total miles"},"detour_ratio":{"type":["number","null"],"description":"Detour ratio"},"straight_line_km":{"type":"number","description":"Straight line, in kilometres"},"travel_time_hours":{"type":["number","null"],"description":"Travel time, in hours"},"total_nautical_miles":{"type":"number","description":"Total nautical miles"}}}}}}},"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_bJpy55GyvEuHUmKNcDGnh","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":"Calculates total and per-leg distances of a multi-stop route from ordered waypoints, returning km, miles, nautical miles, great-circle bearings, detour ratio, and estimated travel time","exampleAgentPrompt":"Calculate the total route distance and estimated travel time for a trip through these four stops — 48.8566,2.3522; 51.5074,-0.1278; 52.3676,4.9041; 48.1351,11.5820 — assuming an average speed of 80 km/h, and give me the distance in km, miles, and nautical miles with the bearing for each leg.","exampleUseCases":[{"title":"Sailing passage distance planning","prompt":"I'm planning a sailing trip from Miami (25.7617,-80.1918) to Nassau (25.0480,-77.3582) to George Town (23.5121,-75.7877) — can you work out the total nautical miles, the bearing on each leg, and roughly how many hours it'll take at 15 knots?"},{"title":"Road trip multi-stop distance check","prompt":"We're driving from Los Angeles (34.0522,-118.2437) to Las Vegas (36.1699,-115.1398) then to Salt Lake City (40.7608,-111.8910) and finally Denver (39.7392,-104.9903) — what's the total distance in miles and km, and how long will it take averaging 100 km/h?"},{"title":"Delivery route distance estimation","prompt":"I have a courier making pickups at 40.7128,-74.0060 then 40.7306,-73.9352 then 40.6892,-74.0445 — what's the total distance in km and miles for each leg, and what's the detour ratio compared to a straight line?"}],"resultDescription":"A JSON object containing total route distance in km, miles, and nautical miles; a straight-line distance in km; a detour ratio; optional estimated travel time in hours; and an array of legs each with from/to labels, distance in km and miles, and initial bearing in degrees. Also includes waypoint count, data source attribution, and a contextual note.","failureModes":["Missing or malformed waypoints parameter returns an error (fewer than 2 points or invalid lat/lon format)","More than 50 waypoints may be rejected or cause unexpected behavior","Invalid speed_kmh value (non-numeric) may cause travel time to be omitted","Network timeout or server error returns a 5xx response","Antipodal or polar coordinates may produce unexpected bearing values"],"whenToPreferThis":"Choose this endpoint when you need precise great-circle route calculations across multiple stops with per-leg breakdown, including bearings and detour ratios — particularly for navigation, logistics, sailing, or aviation contexts where nautical miles and bearing accuracy matter. Prefer this over simple point-to-point distance APIs when you have 2–50 ordered waypoints and want travel time estimates alongside multi-unit distance output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:56:20.825Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-route-distance-calculator-8e6277ad"}