{"uid":"cap_FnFSGGqiCJsEYabUxL4Ow","slug":"saylor-innovations-great-circle-distance-34feac3f","name":"Saylor Innovations Great-Circle Distance","description":"Great-circle (Haversine) distance between two coordinates in kilometers and miles","url":"https://saylorinnovations.com/api/geography/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":["lat1","lon1","lat2","lon2"],"properties":{"lat1":{"type":"string","description":"required latitude -90 to 90 (query)"},"lat2":{"type":"string","description":"required latitude -90 to 90 (query)"},"lon1":{"type":"string","description":"required longitude -180 to 180 (query)"},"lon2":{"type":"string","description":"required longitude -180 to 180 (query)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["origin","destination","great_circle_distance_km","scope_note"],"properties":{"origin":{"type":"object","description":"Origin of the data or item"},"formula":{"type":"string","description":"Formula used for the calculation"},"scope_note":{"type":"string","description":"What this data covers and what it leaves out"},"destination":{"type":"object","description":"Destination"},"great_circle_distance_km":{"type":"number","description":"Great circle distance, in kilometres"},"great_circle_distance_miles":{"type":"number","description":"Great circle distance 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_3BC2E_71ZNA1OXlOshOxy","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 the great-circle (Haversine) distance between two geographic coordinates, returning the result in both kilometers and miles","exampleAgentPrompt":"What's the great-circle distance between London (51.5074, -0.1278) and New York City (40.7128, -74.0060)? Give me the result in both kilometers and miles.","exampleUseCases":[{"title":"Flight distance estimation","prompt":"How far is it in a straight line from Tokyo (35.6762, 139.6503) to Los Angeles (34.0522, -118.2437)? I want the distance in both kilometers and miles."},{"title":"Delivery radius check","prompt":"Can you calculate the great-circle distance between our warehouse at latitude 37.7749, longitude -122.4194 and the customer at latitude 34.0522, longitude -118.2437 to see if they're within our 600 km delivery range?"},{"title":"Sports event travel distance","prompt":"What's the shortest geographic distance between Paris (48.8566, 2.3522) and Berlin (52.5200, 13.4050)? I need it in kilometers and miles for a travel cost estimate."}],"resultDescription":"A JSON object containing the origin and destination coordinate objects, the great-circle distance in kilometers (great_circle_distance_km), the great-circle distance in miles (great_circle_distance_miles), the formula used (Haversine), and a scope note explaining what the calculation covers and excludes (e.g., does not account for terrain or road routing).","failureModes":["Missing required query parameters (lat1, lon1, lat2, lon2) result in an error response","Latitude values outside the -90 to 90 range or longitude values outside -180 to 180 may produce validation errors","Non-numeric string values for coordinates will likely cause a bad request error","Payment failure or expired x402 token may block access to the endpoint"],"whenToPreferThis":"Choose this endpoint when you need a fast, simple great-circle (as-the-crow-flies) distance between two coordinate pairs in both kilometers and miles. Ideal for geospatial enrichment, delivery radius checks, flight distance estimates, or any scenario where straight-line geographic distance is sufficient. Prefer this over routing APIs when road or terrain distance is not needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:22:05.852Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-great-circle-distance-34feac3f"}