Overview
Distance calculator: distance and direction between WGS-84 coordinates: geodesic distance by Vincenty with a haversine fallback, initial and final bearing, the midpoint, and the destination point reached from a start point on a given bearing and distance. Also computes the cumulative length of a supplied coordinate path. Results in metres, kilometres, nautical miles and miles.
Protocol
x402
Price
$0.05
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
data/location
Provider
duoleads
Indexed
2026-09-29 00:13:45
Health
Status
healthy
Latency (p50)
1023ms
Uptime (30d)
98.5%
Reliability Score
84.2/100
Last Checked
2026-10-31 07:02:05
Last Healthy
2026-10-31 07:02:05
Consecutive Failures
0
Input Schema
{
"method": "GET",
"queryParams": {
"lat1": "52.3728",
"lat2": "40.7128",
"lon1": "4.8936",
"lon2": "-74.0060"
},
"type": "http"
}
Output Schema
{
"example": {
"data": {
"bearing_final": 228.8713,
"bearing_initial": 290.8461,
"converged": true,
"distance": {
"km": 5878.232354,
"m": 5878232.354,
"mi": 3652.564246,
"nmi": 3173.991552
},
"method": "vincenty",
"midpoint": {
"lat": 53.7242681,
"lon": -39.60892324
}
},
"meta": {
"computed_at": "2026-09-28T12:00:00.000Z",
"deterministic": true,
"disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
"price_usd": "0.05",
"request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
},
"ok": true,
"route": "/v1/geo/distance",
"version": "1.0.0"
},
"type": "json"
}