Waypoints4 / 25
Runs entirely in your browser — your inputs never leave this page.
How this tool works
- 1
Add up to 25 destination addresses or map coordinates.
- 2
Solves the Traveling Salesperson Problem (TSP) using 2-opt heuristic optimization.
- 3
Outputs total trip mileage, driving duration, and turn-by-turn directions.
Common uses
- Courier delivery route planning to cut gasoline expenses.
- Field service technician maintenance call sequencing.
- Vacation road trip itineraries across multiple attractions.
Frequently asked questions
Yes, you can lock your departure and return locations while letting the algorithm optimize the order of all interior stops.
More in Route Planning
- Halfway Point FinderFind the exact geographic or driving midpoint between two addresses, cities, or friends meeting up, with nearby hotels, restaurants, and gas stations.
- Isochrone MapInteractive multi-modal isochrone mapper rendering equal travel time contours for driving, cycling, and walking across global road networks.
- Fuel Cost CalculatorEstimate total gasoline costs and fuel consumption for driving routes based on distance, vehicle fuel efficiency (MPG), and gas prices.
- Halfway Point FinderEnter two addresses and find the exact geographic halfway point between two cities — with the distance from each side, shareable coordinates, and a one-tap map link for the meeting spot.
- Hiking Time CalculatorEnter trail distance and elevation gain for an honest hiking time estimate using Naismith's rule — adjusted for fitness, terrain, pack weight, and rest breaks.
Cutting 9 Miles from a Bakery Delivery Loop in Portland
A bakery driver in Portland, Oregon starts each morning with the same problem: six cafe deliveries across the city, loaded in the order the invoices happened to print. He types the depot and all six stops into the route planner and lets it reorder the stops for the shortest loop instead of his usual zigzag.
The difference is not subtle. His printed-order route totals 38 miles of city driving. The optimized order comes back at 29 miles, saving 9 miles, which is about a 24 percent cut, and at city speeds that is roughly 25 minutes back in his morning. The planner kept the depot as both the start and the finish, so the loop still ends back at the bakery where the van lives.
Before accepting the new order, he applies two human checks. The downtown cafe cannot take deliveries before 9 a.m., so he pins that stop in position rather than letting the optimizer put it first at 7:40. Then he loads the van in reverse drop order, last stop in first, so nothing for the final cafe is buried under the first cafe's crates.
The leg-by-leg summary shows him where the remaining miles live. The longest single leg is 8.2 miles, the hop across the river to the farthest cafe, and everything after it is short hops of two miles or less. Knowing that shapes his timing: if he leaves the bakery by 7:10, the river crossing happens before the worst of the morning rush, and the optimized order still holds together.
The savings also compound in a way a single morning hides. Nine miles saved a day is 45 miles a week, and at 25 mpg around town that is about 1.8 gallons, roughly $6 to $7 a week at local prices, or more than $300 a year in fuel alone. The bigger prize is the 25 minutes, which becomes the buffer that absorbs a late bake or a blocked street without the whole round running late.
Midweek brings the real test of the system. A seventh customer, a farmers market stall across the river, needs a one-off drop added to Thursday's round. Instead of bolting it onto the end of the route, which is what he would have done by feel, he adds the address and re-optimizes. The planner slides the new stop into third position and the whole loop comes back at 31.5 miles. His end-of-route guess would have cost about 36 miles, so the habit of re-running the optimizer, not just running it once, is where the steady savings live.
He prints the final stop list and keeps the route saved for next week, when the same six cafes order again. When one cafe closes for a holiday, he removes that single stop and re-optimizes in seconds, instead of rebuilding the morning from memory. By the end of the first month, the saved miles have quietly handed back about two hours of his mornings, which now go to helping with the bake instead of circling blocks in search of an efficient order he used to improvise.
Common mistakes to avoid
- Forgetting the depot as the finish. If the route is not set to return to base, the optimized loop can end across town and quietly add the whole drive home back on top.
- Ignoring time windows. The mathematically shortest loop is useless if it reaches a business an hour before it opens. Pin fixed-time stops, then optimize the rest around them.
- Trusting the order blindly. Bridge closures, one-way streets, and school zones can make a paper-perfect leg slow today. Glance at each leg before you roll.
Pro tips
- Load the vehicle in reverse stop order so each delivery is reachable at its door.
- Save regular routes and edit them, rather than rebuilding from scratch each time.
- Re-optimize after any stop changes; one added address can reshape the whole loop.
Distances, Routes & Drive Times: How Mapping Math Works
Why the Earth refuses to be flat, how calculators measure true distances, how road networks find your route, and what those drive-time blobs on the map really mean. Written for Multi-Stop Route Planner & Turn-by-Turn Optimizer and the everyday mapping tasks around it.
The Earth Is Not Flat (and Your Math Must Know It)
For a walk to the corner store, flat math is fine. For a drive from Chicago to Denver, it is not. The Earth bulges at the equator and flattens at the poles — an oblate ellipsoid about 13 miles wider than it is tall. Ignore that shape and long distances come out wrong by miles.
Surveyors model the planet with the WGS84 ellipsoid: an equatorial radius of 3,963 miles and a polar radius of 3,950 miles. Every serious distance tool, including the ones on this site, measures along this curved surface rather than through the planet's interior.
The practical rule is simple. Under about 10 miles, flat-map math and true geodesic math agree to within a few feet. Past 100 miles, the gap grows fast. A flight from New York to London measured on a flat map would miss by over 200 miles — which is why aviation never uses flat math.
Haversine vs. Vincenty: Two Ways to Measure
The Haversine formula treats the Earth as a perfect sphere. It is a few lines of code, runs instantly, and gets within about 0.5% of the true distance. For store locators and "places near me" features, that is plenty. Most web maps use it under the hood.
Vincenty's method goes further. It walks the actual WGS84 ellipsoid, iterating until the answer converges, and lands within millimeters on distances of thousands of miles. The cost is complexity: the math needs a dozen steps and can fail to converge for nearly antipodal points, though modern implementations handle that gracefully.
Which should you trust? For driving estimates and everyday questions, both agree closely enough that you will never notice. For surveying, aviation, and scientific work, Vincenty or its modern successor Karney's algorithm is the standard. This site uses ellipsoidal math wherever precision matters.
One more subtlety: "distance" has flavors. Great-circle distance is the shortest path over the surface. Rhumb-line distance holds one compass bearing the whole way — longer, but easier to steer by hand, which is why sailors used it for centuries.
This page shows the first two chapters. Read the complete this category field guide →