A Free Multi-Stop Route Planner You Can Embed Anywhere

Back in August I wrote that I was working on a lighter, paste-your-addresses version of my routing tool for people who don’t need an API. It’s live now: a free multi-stop route planner that fits in a small box. You paste a list of addresses, pick how many vehicles you have, and it gives you each route in order with a Google Maps link for the driver. You can use it on its own page, and you can put it on your own website with one line of HTML.

Below: what it does, a live copy you can try right here, a real run with eight stops in Wichita (including one result that looks wrong on a map and isn’t, quite), and the snippet to embed it.

What the widget does

It’s the small version of my free route optimizer. One address per line, and the first line is your start point: every route leaves from there and comes back there. After that you can add up to 25 stops. Pick 1, 2 or 3 vehicles, say whether the addresses are in the United States or somewhere else, and press the button.

Behind the button, three things happen. The addresses are turned into coordinates. Drive times between every pair of points come from real roads, using the public OSRM routing server on OpenStreetMap data, not straight lines. Then Google’s open-source OR-Tools vehicle routing solver decides which stops go on which vehicle and in what order, to keep the total time on the road as low as it can. The whole thing takes up to about 30 seconds.

What comes back is one box per route: the stops in order, roughly how many minutes on the road, and a button that opens the route in Google Maps. Google Maps only takes so many stops in one link, so a long route comes with two or three links, each covering part of it. If an address can’t be found, you get a note naming the line, so you know which one to fix instead of wondering why a stop is missing.

Try it here

This is the live widget, not a screenshot. The example addresses in the box are only a placeholder, so paste your own (or the Wichita list from the next section).

A real run: eight stops in Wichita

For the test I used Wichita, Kansas, and public places anyone can look up, with the Wichita Art Museum as the start point:

-Wichita Art Museum (Start & End), 1400 W Museum Blvd, Wichita, KS 67203
-Wichita State University, 1845 Fairmount St, Wichita, KS 67260
-Sedgwick County Zoo, 5555 W Zoo Blvd, Wichita, KS 67212
-Botanica Wichita, 701 N Amidon St, Wichita, KS 67203
-Exploration Place, 300 N McLean Blvd, Wichita, KS 67203
-Old Cowtown Museum, 1865 W Museum Blvd, Wichita, KS 67203
-INTRUST Bank Arena, 500 E Waterman St, Wichita, KS 67202
-Wichita Public Library (Advanced Learning Library), 711 W 2nd St N, Wichita, KS 67203
-Towne East Square, 7700 E Kellogg Dr, Wichita, KS 67207

One vehicle, United States. The answer came back as a single route of about 66 minutes on the road: Old Cowtown Museum, Botanica, the library, the zoo, Exploration Place, Wichita State, Towne East Square, the arena, and back to the museum. All eight addresses were found, no warnings.

 

route in wichita ks

The order the widget returned for 8 Wichita stops, drawn from the coordinates it found. Straight lines show the sequence, not the streets.

Look at the picture and one thing jumps out. The library and Exploration Place are a block apart, and the route visits the library, drives out to the zoo, and comes back to Exploration Place. By eye, I’d have done both downtown stops together and the zoo on the way. (So would anyone with a paper map.)

Here is why it isn’t the mistake it looks like. The tool counts every leg as at least 5 minutes, even when two stops are next door, a floor that roughly stands in for getting out of one parking lot and into the next. So the hop between the library and Exploration Place costs 5 minutes whether you make it directly or not, and that makes several orders cost the same or nearly the same. When that happens, the solver hands you one of them, and it won’t always be the one that looks tidiest on a map. The order still matters a lot for the long legs, and there it does what you’d expect: the east side (Wichita State, Towne East, the arena) is one sweep, not three trips.

Then I ran the same list with 2 vehicles, expecting two routes. I got the same single route back. That puzzled me for a minute, and it’s my own tool. The vehicle number is a maximum, not a quota. The widget has no van capacity and no time limit short of a full day, so a second van only adds driving back and forth from the start point, and the solver won’t use it. If you need the work split, say “nobody drives more than three hours,” that’s what the full tool is for: route time limits, capacities, time windows and service times at each stop.

What it won’t do

It’s a small box on purpose. It doesn’t take delivery time windows, how long you spend at each stop, or how much fits in each vehicle. It’s 25 stops at most, one start point, and every route returns to it. Pickups and drop-offs between stops are out. The full route optimizer handles most of that from a spreadsheet, and if your stops already live in a spreadsheet, my Google Sheets route planner does it without leaving Sheets. If you’re a developer weighing your options, I wrote about when you actually need a route optimization API.

There’s also a limit of a few runs per minute from the same visitor, so one page can’t tie up the solver for everybody else. A normal person pasting a list and pressing the button once won’t notice it.

Put it on your site

This part is for bloggers, teachers and small businesses. If you write about delivery, field service, sales territories or running errands, or you teach a class where the traveling salesman problem comes up, you can drop the widget into a page and your readers get a working route planner instead of a description of one. It’s free, there’s no API key and no signup, and nothing to install. Copy this into any page that accepts HTML (on WordPress, a Custom HTML block, which is how it’s embedded above):

<iframe src="https://routing.kindoflost.com/embed" title="Free Route Optimizer by Kind of Lost" loading="lazy" style="width:100%;height:700px;border:1px solid #ddd;border-radius:6px"></iframe>

Change the height if your layout needs it. A run with three vehicles and 25 stops makes a long answer, and the box scrolls inside itself. The widget carries a small “Powered by Kind of Lost” line at the bottom with a link to the full tool; that’s the only thing it asks in return. The addresses your readers paste are looked up to build the routes, and found addresses go into the same cache the full tool uses, so an address isn’t looked up twice.

For the record, nobody has embedded it yet, so you’d be the first. If you do, or if it gets a route plainly wrong, email me at [email protected]. I’d rather hear about the wrong route.

Tradeline Supply
Things that I use, like, and am affiliated with:
Mint Mobile offers great cell phone service for $15 flat, get $15 off using the link. Get discounted phones with service activation and no contract.
I never spend money before I check Mr Rebates or Rakuten to get cashbacks, rebates, discounts, coupons or cheaper gift cards.

Leave a Reply