Ultimate Route Distance Calculator avatar

Ultimate Route Distance Calculator

Pricing

$1.00 / 1,000 result items

Go to Apify Store
Ultimate Route Distance Calculator

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

Pricing

$1.00 / 1,000 result items

Rating

0.0

(0)

Developer

ajay shah

ajay shah

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Categories

Share

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.