{"uid":"cap_6fro0Oq7KTXR1-KTZV7QD","slug":"vextorium-geodesic-distance-calculator-ded5e571","name":"Vextorium Geodesic Distance Calculator","description":"Distance between two coordinates (Vincenty geodesic on WGS84 plus great-circle), in km, miles and nautical miles, initial bearing and compass direction, midpoint and estimated time on foot, by car and by plane.","url":"https://api.vextorium.com/geo-distancia-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lat1":{"type":"number"},"lat2":{"type":"number"},"lon1":{"type":"number"},"lon2":{"type":"number"}}},"responseSchema":{"type":"json","example":{"nota":"Distancia en línea recta, no por carretera.","rumbo":"E","metodo":"Vincenty WGS84","punto_medio":{"lat":40.939351,"lon":-0.789164},"distancia_km":506.3,"distancia_millas":314.6,"tiempo_estimado_h":{"a_pie_5kmh":101.26,"coche_80kmh":6.33,"avion_800kmh":1.13},"rumbo_inicial_grados":75.75,"distancia_esferica_km":505.096,"distancia_millas_nauticas":273.38}},"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_bpk24cPoRxbtmHiy_XbkJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the geodesic (Vincenty WGS84) and great-circle distance between two coordinates, returning distance in km/miles/nautical miles, initial bearing, compass direction, midpoint, and estimated travel times by foot, car, and plane.","exampleAgentPrompt":"What's the straight-line distance between Madrid (40.4168, -3.7038) and Barcelona (41.3851, 2.1734)? I need the result in km, miles, and nautical miles, plus the initial compass bearing and an estimate of how long the trip would take by foot, car, and plane.","exampleUseCases":[{"title":"Flight distance planning between cities","prompt":"How far is it from London (51.5074, -0.1278) to New York (40.7128, -74.0060) in kilometers and nautical miles, and what's the compass bearing heading out of London?"},{"title":"Hiking trail straight-line estimation","prompt":"I'm planning a hike and need to know the straight-line distance between these two trailhead coordinates: 47.6062° N, 122.3321° W and 47.7165° N, 122.3418° W — give me the distance in km and miles, and roughly how long it would take on foot."},{"title":"Shipping route midpoint calculation","prompt":"Find the geodesic distance and midpoint between the Port of Shanghai (31.2304, 121.4737) and the Port of Los Angeles (33.7294, -118.2620), and tell me how many nautical miles apart they are."}],"resultDescription":"A JSON object containing: distance in km (Vincenty), distance in miles, distance in nautical miles, great-circle distance in km, initial bearing in degrees, compass direction label (e.g. 'E'), midpoint latitude and longitude, estimated travel time in hours on foot at 5 km/h, by car at 80 km/h, and by plane at 800 km/h, plus a note that the distance is straight-line (not road distance) and the method used (Vincenty WGS84).","failureModes":["Missing required lat1/lon1/lat2/lon2 fields returns a validation error","Coordinates outside valid range (lat: -90 to 90, lon: -180 to 180) may cause computation errors","Identical coordinates may return zero distances and undefined bearing","Payment failure via x402 protocol results in access denied","Malformed JSON body returns a parse error"],"whenToPreferThis":"Choose this endpoint when you need precise geodesic distance between two coordinate pairs using the accurate Vincenty WGS84 formula, especially when you also need bearing, midpoint, and multi-unit output (km, miles, nautical miles) plus travel time estimates in a single call. Prefer it over simple Haversine-based tools when geodetic accuracy matters (e.g. long distances where Earth's ellipsoidal shape is significant), or when you need compass direction and travel time estimates bundled together without additional calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T18:47:53.983Z","isFirstParty":false,"canonicalSlug":"vextorium-geodesic-distance-calculator-ded5e571"}