Waypoints4 / 25
Runs entirely in your browser — your inputs never leave this page.
How this tool works
- 1
Computes an NxN distance and duration cost matrix for all chosen stops.
- 2
Applies 2-opt heuristic optimization to solve the Traveling Salesperson Problem (TSP) in polynomial time.
- 3
Generates interactive turn-by-turn waypoints and exports full route coordinates to CSV or GPX.
Common uses
- Field sales calls and real estate property viewing schedules.
- Delivery drivers wanting to minimize gasoline expenses.
- Road trip itineraries across national parks and cities.
Frequently asked questions
You can add up to 25 stops per route, which is fully supported with real-time waypoint dragging and optimization.
More in Distance & Driving
- Distance Between 2 PlacesMeasure great-circle geodesic distance (crow-flies) alongside turn-by-turn driving distance, travel duration, and detour percentage.
- Crow-Flies vs DrivingVisualize the direct geodesic arc compared side-by-side with road network routing, showing terrain detour factors.
- Distance Between CitiesInstant lookup of straight-line and highway miles between any two US or global cities or ZIP codes.
- Distance Matrix GridCompute an N x N distance and travel time matrix for 2 to 50 locations. Visualize with interactive heatmap and export CSV.
- Halfway Point FinderFind the exact geographic or driving midpoint between two people. Discover cities, hotels, and restaurants to meet in the middle.
- Map Radius ToolDraw accurate geodesic distance circles around any location from 100 feet to 3,000 miles. Layer multiple radius rings with custom colors.
- Drive Time IsochronesGenerate 10, 15, 30, 45, 60, and 90-minute reachable travel time polygons for driving, bicycling, or walking.
- Map Area CalculatorClick to draw any polygon on the map to calculate land area in acres, square feet, hectares, square miles, or square kilometers.
- Bearing & CompassCalculate initial bearing, final bearing, rhumb line heading, and magnetic declination between any two global coordinates.
- Horizon DistanceCalculate how far away the physical Earth horizon is based on observer eye elevation above sea level, accounting for atmospheric refraction.
- Distance From MeSelect any target destination and watch your live GPS update your real-time crow-flies distance, heading arrow, and travel speed continuously.
Six Bakery Deliveries in Portland: Saving 5.5 Miles by Reordering Stops
Every morning, a Portland bakery driver loads the van for six cafe drop-offs across the city, starting and ending at the bakery. The stops were written on the board in the order the cafes phoned in, and driven in that order the route's legs measure 3.2, 4.8, 2.9, 5.1, 2.2, and 1.4 miles. Added together, that is 19.6 miles of zigzagging across town before the van is back at the dock, much of it spent re-crossing streets the route had already visited. The cafes, meanwhile, judge the bakery on warm deliveries, not on the elegance of the route that produced them, so every wasted mile shows up twice: once in fuel and once in freshness.
She enters all six stops plus the bakery into the route tool, drags two stops around to test a hunch of her own, and then lets the optimizer reorder the whole day. The new sequence's legs add up to 14.1 miles. The saving is 19.6 minus 14.1, which is 5.5 miles, and 5.5 divided by 19.6 is about 0.28, so the optimized route is roughly 28 percent shorter without dropping a single delivery, changing a single customer, or asking anyone to wake up earlier. The optimized order also groups the downtown stops together instead of scattering them between the suburban ones, which any city driver will recognize as plain common sense that paperwork order rarely produces on its own.
Time follows the same math. At the 25 mph she actually averages on city streets with lights and parking, 5.5 divided by 25 is 0.22 hours, about 13 minutes saved every morning. She also keeps the round-trip toggle switched on, because the optimizer then counts the final leg home honestly; turning it off would make the total look prettier on screen while quietly stranding the van across town at the end of the route. With the order settled, she exports the final stop list to CSV so the kitchen board and the driver are working from the same sequence. The exported list also becomes the record when a cafe claims a delivery never arrived: the route, the order, and the planned leg distances are all written down.
The compounding across the year is the real story. Five mornings a week, the saved miles become 27.5 per week, which at 25 mpg is about 1.1 gallons of fuel weekly and roughly 57 gallons over a year. The saved minutes become about 65 per week, and 65 times 52 weeks is about 3,380 minutes, roughly 56 hours of driver time a year, recovered by changing nothing but the order in which the same six doors get visited.
Common mistakes to avoid
- Visiting stops in the order they were written down. List order is paperwork order, not road order. An un-optimized route commonly wastes a quarter of its miles crossing its own path, exactly as the 19.6 versus 14.1 mile comparison shows, and the waste repeats every single day. It is the most expensive kind of waste there is, the kind nobody notices because the van always comes back.
- Turning off the round trip to shrink the total. If the vehicle has to come home, the last leg is real mileage that someone drives and the company fuels. Hiding it in the settings just moves the surprise to the end of the driver's day and corrupts every comparison.
- Adding all 25 stops without scanning the legs. One mistyped address can teleport a single leg across town and quietly inflate the whole route while looking plausible in the total. Glance at each leg's distance and investigate any outlier before anyone drives the plan.
Pro tips
- Optimize first, then hand-tweak only the stops that carry fixed appointment times, and re-check the total after each tweak., because one casual manual swap can quietly undo the optimizer's best work.
- Export the final route to CSV so the whole team, from kitchen to driver, works from the same stop order.
- When a stop gets added mid-route, re-run the optimizer instead of just tacking it onto the end of the list.
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 Distance & 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 Distance & Drive Time field guide →