Ultimate Route Distance Calculator
Pricing
$1.00 / 1,000 result items
Ultimate Route Distance Calculator
Calculate the total travel distance of a route defined by latitude/longitude points. Users supply an array of waypoints (lat, lon) and optionally choose distance units (kilometers or miles). The tool uses the haversine formula to compute leg distances and the total, returning a structured result wit
Calculate the total travel distance of a route defined by latitude/longitude points. Users supply an array of waypoints (lat, lon) and optionally choose distance units (kilometers or miles). The tool uses the haversine formula to compute leg distances and the total, returning a structured result with each leg’s distance and the overall total.
Example input
{"route": [{"lat": 40.7128,"lon": -74.006},{"lat": 51.5074,"lon": -0.1278}],"unit": "km"}
Each result item contains: total_distance, unit, legs.