Book a strategy sessionCall

Daily AI Move · 023

Untangle tomorrow's service route, with Codex.

Give Codex tomorrow's job list in booking order (each stop's town and its latitude and longitude) and your rules: straight-line miles times 1.3 for roads, 30 mph, 45 minutes a job, out the door at 8:00, one job that has to be reached before noon. In our run Codex tried all 40,320 orders and opened a route planner in about two minutes. For a made-up plumber's eight calls, the booked route zigzagged across the county; the best order is one loop, about 37 miles and 74 minutes of driving shorter (an estimate: real drive times depend on roads and traffic), back at the shop at 4:10 instead of 5:24, and the before-noon customer still reached at 9:13. Our own math matches.

At a glance

Built with
Codex, GPT-6.1 Sol, Medium effort
Build time
Planner open in about 2 minutes (2 min 39 s with its own checks)
Sample data
8 made-up service calls, town-level locations
Cost
Your existing Claude or ChatGPT plan
Published

80-second walkthrough

Watch it start to finish

From pasting the job list and the rules to the redrawn route, the miles saved and the planner, recorded in Codex.

Filmed in Codex, but Claude handles this too. See the scores below.

Then try it yourself
Read the transcript

This plumber's day was booked with about 37 extra miles of driving.

Codex untangled it into one clean loop. Here's how.

Here's tomorrow for a made-up plumber, Crack of Dawn Plumbing: eight calls, each with its town's location.

Give Codex the rules: straight-line miles, times 1.3 for roads, 30 miles an hour, 45 minutes a job, out the door at eight.

And one catch: Ivana Shower needs her hot water before noon.

In under three minutes, Codex checks all 40,320 possible orders and builds a planner.

The booked route crisscrosses the county. The new route is one clean loop.

About 37 miles and 74 minutes of driving saved. It's an estimate: real drive times depend on roads and traffic.

And Ivana still gets her plumber at 9:13, well before noon.

Drive the same loop backwards and she waits until after two. That's why the rule matters.

Open in Google Maps sends the new order there. Check every stop when it opens.

Tomorrow night, paste in your own stops. A made-up heating company, Furnace Gump, saves about 23 miles.

Want the planner and the prompt? Both are at the link in our bio.

Follow MediaMentorAI for a new AI move every weekday.

Live demo

Try the route planner Codex built

This is the route planner Codex built, as it came out. It opens with the made-up plumber's eight stops already planned. Paste your own stops, one per line, and press Find best route. It runs in your browser, so nothing you paste is uploaded.

Codex's route planner on a phone: about 37.0 miles and 74 minutes saved (estimate), booking 101.8 miles against best 64.8 miles, and the booked route drawn as a tangle above the best order drawn as one loop.

Try this

  1. Read the green card: about 37.0 miles and 74 minutes saved (estimate), booking about 101.8 miles against best about 64.8
  2. Compare the two drawings: the booked route crosses itself, the best order is one loop
  3. In Best order · estimated arrivals, Ivana Shower (booked 1) is reached at 9:13 AM with Arrival by noon · met
  4. Replace the stops with paste-stops-sample.txt (another made-up company, Furnace Gump) and press Find best route: about 23.0 miles and 46 minutes saved
  5. Open the demo full screen to use Open in Google Maps, which opens Google Maps in a new tab with the stops in the new order

With the sample: Codex checked all 40,320 orders (16,824 reach Ivana Shower by noon). The best order is Marlboro, Holmdel, Middletown, Red Bank, Long Branch, Asbury Park, Wall, Howell: about 64.8 miles and 130 minutes of driving against 101.8 miles and 204 minutes in booking order, about 37.0 miles and 74 minutes saved, back at the shop at 4:10 PM instead of 5:24 PM. All of these are estimates from straight lines times 1.3.

The plumber, the customers and Furnace Gump are made up, and each stop is a town's approximate centre, not an address. Every distance and time is an estimate from straight lines times 1.3 and 30 mph: real drive times depend on roads and traffic, and Google Maps may choose different roads. Open in Google Maps opens a new tab, which this page's embedded frame doesn't allow, so open the demo full screen to use it; Google's directions links take up to 9 stops, and fewer in some mobile browsers. Practice files in this tutorial's folder: tomorrow-jobs-sample.csv and paste-stops-sample.txt. Nothing you paste is saved when the page reloads.

Open it full screen (opens in a new tab)

Daily AI Move newsletter

Get the week's 5 Moves in one email, every Sunday

Plus a subscriber-only tip you won't find on our site or socials. Free, and you can unsubscribe anytime.

We'll only email you about Daily AI Move and MediaMentorAI. See our privacy policy.

Step by step

How to build it in 5 steps

Tested in Codex with GPT-6.1 Sol, Medium effort.

  1. List tomorrow's stops in booking order

    The shop first, then each job in the order the calls came in: the customer, the job, the town and the town's latitude and longitude. Mark the one job that has to be reached before noon. Our practice file is a made-up plumber's eight calls around Monmouth County, New Jersey, at town level, not street addresses.

    To get a place's latitude and longitude, right-click it in Google Maps: the coordinates are the first line of the menu.

  2. Give Codex your rules

    Attach the list in Codex and paste the prompt below. It states every rule the answer depends on: straight-line miles between the coordinates times 1.3 for roads, 30 mph on average, 45 minutes a job, leave the shop at 8:00 AM, the before-noon job reached by 12:00, and start and end at the shop. Change them to your own numbers.

    Saying the rules out loud is what makes the answer checkable: you can work out any route's miles and times yourself.

  3. Let it try every order

    Eight stops can be visited in 40,320 orders, and Codex checked all of them, keeping only the ones that reach the before-noon job in time. A loop and the same loop driven backwards have the same miles, so the deadline is what picks the direction: backwards, our before-noon customer would wait until 2:11 PM. Codex opened the planner in about two minutes and finished its own checks at 2 minutes 39 seconds.

  4. Read the new order and the saving

    Ours went from 101.8 to 64.8 miles: about 37 miles and 74 minutes of driving saved, back at the shop at 4:10 instead of 5:24, with Ivana Shower reached at 9:13, well before noon. Every number matched our own math, and Codex called them estimates, because real drive times depend on roads and traffic.

  5. Take it to Google Maps, then check

    Open in Google Maps opens directions from the shop through the stops in the new order and back. Google may choose different roads and times, and its links take up to 9 stops (fewer in some mobile browsers), so check every stop when it opens. Tomorrow night, paste your own stops into the planner and press Find best route.

    Use your customers' real coordinates for tomorrow's run; town centres are only good for a rough plan.

Copy it

The exact prompt we used

Attach your own job list (the shop first, then each stop with its latitude and longitude, in booking order), change the rules to your own numbers if they differ, and send it as one message.

Prompt

tomorrow-jobs-sample.csv is tomorrow's job list for my plumbing company (sample data, made up): the shop first, then each job in the order the calls were booked, with the customer, the job, the town and the town's latitude and longitude. One job has to be reached before noon.

Find the best order for tomorrow with these rules:
Start and end at the shop.
Distance: straight-line miles between the coordinates, times 1.3 for roads.
Driving speed: 30 mph on average. Each job takes 45 minutes. We leave the shop at 8:00 AM.
The before-noon job: we must get there by 12:00 noon.
Best order: the fewest miles that still gets to the before-noon job in time. Try every possible order.

In your reply, list the new order with the arrival time at each stop, and say how many miles and minutes of driving it saves compared with the booking order. Call every number an estimate: real drive times depend on roads and traffic.

Then build me a small route planner as one HTML file. I paste or type my stops, one per line: name, latitude, longitude, and "before noon" if we must get there by noon, with the shop on the first line. It finds the best order with the same rules, lists it with arrival times, draws the route in the order I listed (the booking order) and the new route side by side from the coordinates (plain SVG or canvas, no map tiles), says "about N miles and M minutes saved (estimate)", and has an "Open in Google Maps" link that starts at the shop, goes through the stops in the new order and comes back. Add a "Load sample data" button with tomorrow's list. Use click handlers, not a form. No alert or confirm boxes, no downloads, no AI, nothing loaded from the internet: plain HTML and JavaScript in one file, nothing to install.

Do the work yourself, without helper agents or add-on skills. When it's done, open the planner here so I can see it.

Works in Claude, ChatGPT and Codex. We tested this prompt on 7 models. Claude Haiku 5.5 (36 out of 100) failed our checks; the other 6 passed.

Download service-route-planner-prompt.md

The download is the same prompt as a file, with links to the practice job list and a second list to paste into the planner. In the video we attached tomorrow-jobs-sample.csv in Codex and sent this prompt as it is.

Tested November 2, 2026

What this costs to run

One test run per model on Nov 2, 2026, with the same prompt and the sample job list (Claude models through the Claude Code command-line tool; OpenAI models through the Codex command-line tool, at medium effort). Each tool adds its own built-in instructions, so overhead differs between them and from the chat apps. Usage varies by task and by chat; treat these as rough guides.

  • Best value on Claude: Claude Sonnet 5.5. The highest quality for the usage among the Claude models that passed: 100 out of 100 for about $0.24 of usage at API list prices, about 0.088% of a Claude Pro week (estimate), and the fastest Claude run (87 seconds). Claude Haiku 5.5 used less but failed.
  • Best value on ChatGPT: GPT-6 Luna. The highest quality for the usage among the four OpenAI models, which all passed: 100 out of 100 for 0.30 OpenAI credits in 78 seconds.
  • Claude Haiku 5.5

    Anthropic · Claude

    Time
    2 min 39 s measured
    Quality
    36/100, didn't pass our checks measured
    Claude Pro ($20/month)
    about 0.011% of a week estimate
    Claude Max ($100/month)
    about 0.0022% of a week estimate
    Claude Ultra ($200/month)
    about 0.0011% of a week estimate
  • Claude Sonnet 5.5

    Anthropic · Claude

    Time
    87 seconds measured
    Quality
    100/100, passed our checks measured
    Claude Pro ($20/month)
    about 0.088% of a week estimate
    Claude Max ($100/month)
    about 0.018% of a week estimate
    Claude Ultra ($200/month)
    about 0.0088% of a week estimate
  • Claude Opus 5.5

    Anthropic · Claude

    Time
    3 min 27 s measured
    Quality
    100/100, passed our checks measured
    Claude Pro ($20/month)
    about 0.33% of a week estimate
    Claude Max ($100/month)
    about 0.067% of a week estimate
    Claude Ultra ($200/month)
    about 0.033% of a week estimate
  • GPT-6 Luna

    OpenAI · ChatGPT / Codex

    Time
    78 seconds measured
    Quality
    100/100, passed our checks measured
    ChatGPT Plus ($20/month)
    One message. Plus allows roughly 350–3,000 GPT-6 Luna messages every 5 hours (bigger tasks use more). OpenAI doesn't publish a weekly Plus allowance. official range
    ChatGPT Pro ($100 / $200 / $500)
    OpenAI doesn't state the Pro tiers' allowances as a multiple of Plus. not published
  • GPT-6.1 Terra

    OpenAI · ChatGPT / Codex

    Time
    53 seconds measured
    Quality
    100/100, passed our checks measured
    ChatGPT Plus ($20/month)
    One message. Plus allows roughly 35–285 GPT-6.1 Terra messages every 5 hours (bigger tasks use more). OpenAI doesn't publish a weekly Plus allowance. official range
    ChatGPT Pro ($100 / $200 / $500)
    OpenAI doesn't state the Pro tiers' allowances as a multiple of Plus. not published
  • GPT-6.1 Sol

    OpenAI · ChatGPT / Codex

    Time
    2 min 44 s measured
    Quality
    100/100, passed our checks measured
    ChatGPT Plus ($20/month)
    One message. Plus allows roughly 15–160 GPT-6.1 Sol messages every 5 hours (bigger tasks use more). OpenAI doesn't publish a weekly Plus allowance. official range
    ChatGPT Pro ($100 / $200 / $500)
    OpenAI doesn't state the Pro tiers' allowances as a multiple of Plus. not published
  • GPT-6 Astra

    OpenAI · ChatGPT / Codex

    Time
    4 min 02 s measured
    Quality
    100/100, passed our checks measured
    ChatGPT Plus ($20/month)
    One message. Plus allows roughly 5–45 GPT-6 Astra messages every 5 hours (bigger tasks use more). OpenAI doesn't publish a weekly Plus allowance. official range
    ChatGPT Pro ($100 / $200 / $500)
    OpenAI doesn't state the Pro tiers' allowances as a multiple of Plus. not published
measured
Read directly from the run: time and the quality checks.
official range
OpenAI's own published range of messages per 5 hours on Plus.
estimate
Measured usage converted with official plan multiples and our own plan meter.
not published
The company doesn't publish this number, so we don't guess it.

Quality is 25 automated checks on the planner each model made, in a browser with the internet blocked, after Load sample data: the button itself, about 37 miles and 74 minutes saved, the best order at about 64.8 miles and the booking order at about 101.8, an Open in Google Maps link whose stops run Marlboro, Holmdel, Middletown, Red Bank, Long Branch, Asbury Park, Wall, Howell (the same loop driven backwards has the same miles but misses the noon deadline, so this checks the deadline too), the new order listed on the page, Ivana Shower reached at 9:13 AM, two route drawings, the word estimate, a second made-up list pasted in (about 23 miles saved, best about 52 miles), and no form that reloads the page, NaN, errors or outside requests. The miles saved must be right to pass at all.

Six of the seven models scored 100. Claude Haiku 5.5 scored 36 and failed: the sample it built into its planner names the shop "Crack of Dawn Plumbing (shop, Freehold)", and its planner splits each line at commas, so the name's own comma pushes the latitude into the wrong place and Load sample data shows an error. A pasted list without commas in the names works, which is why it kept the points for the second list.

There's no single pick across Claude and ChatGPT: they meter usage differently, and OpenAI doesn't publish a weekly Plus allowance or the Pro tiers' multiples, so a ranking across them would be a guess.

The video was recorded in Codex with GPT-6.1 Sol at Medium effort, the same model as the GPT-6.1 Sol row above; in the app it opened the planner in about two minutes and finished its own checks at 2 minutes 39 seconds. Codex's own planner (the demo above) passes all the checks.

Under the hood

What Codex built, and why

Read from Codex's answer in the chat and the planner it opened in its preview.

  • Every order, with the deadline

    Codex wrote a small script that tried all 40,320 orders of the eight stops, worked out each one's miles and arrival times from the rules, and kept only those that reach the before-noon job by 12:00 (16,824 of them). Its reply opens: "The best order saves about 37.0 miles and 74 driving minutes (estimates) compared with booking order. I checked every possible job order."

  • The new order with arrival times

    Its reply lists every stop in the new order with an estimated arrival, from Leave shop, Freehold at 8:00 AM to Return to shop at 4:10 PM, with Ivana Shower, Holmdel at 9:13 AM marked "noon deadline met", then booking order at about 101.8 miles and 204 driving minutes against about 64.8 miles and 130 minutes.

  • Both routes, drawn side by side

    The planner draws the booked route and the best route from the coordinates on the same scale, north up, with each stop keeping its booking number and arrows for direction. The booked one crisscrosses itself; the best one is a single loop. No map tiles, so nothing loads from the internet.

  • An arrivals table and a Google Maps link

    Under the drawings: each stop in the new order with its booking number and estimated arrival, an "Arrival by noon · met (estimate)" badge on the before-noon job, and an Open in Google Maps link with the shop, the stops in the new order and the shop again.

  • Estimates, labeled as estimates

    The reply and the planner call every number an estimate and say real drive times depend on roads and traffic; the planner adds that Google Maps may choose different roads and that its waypoint support varies by device.

  • Checked before it was shown

    Before opening the planner, Codex tested it against its own independent calculation (the 40,320 and 16,824 counts, the best order and its miles), tried bad input lines and a name with a comma, and checked the noon boundary. The planner is one HTML file with click handlers, no form, no pop-ups and no AI behind it.

Before you share

Check these first

A better order on paper is a starting point. These checks keep tomorrow realistic.

  • These are estimates from straight lines times 1.3 at 30 mph. Real drive times depend on roads, traffic, bridges and parking, so leave slack in the day.
  • Use each customer's real coordinates, not the town centre, before you trust a new order for tomorrow.
  • Set your own road factor, speed and time per job. A job that runs long moves every arrival after it.
  • Mark every time window you've promised, not just the morning one, and check the arrivals against them.
  • Google Maps may choose different roads and times. Check every stop when it opens, and that it starts and ends at the shop.
  • The job list holds your customers' names and towns. Attach only what the route needs.

Make it yours

The same move for other businesses

Any business with a van and a list of stops can reorder its day the same way.

  • HVAC and plumbing

    Reorder tomorrow's service calls each evening, keeping the promised morning and afternoon windows.

  • Lawn care and landscaping

    Plan the week's mowing loop by day, with the gated communities that need an early start marked.

  • Mobile pet grooming

    Reorder the day's appointments so the van crosses town once, with the before-noon clients kept first.

  • Cleaning services

    Put each crew's houses in one loop and see how much driving the booking order was costing.

  • Home inspectors and estimators

    Order a day of site visits around the one appointment that's fixed in time.

  • Delivery and catering

    Order a morning of drop-offs around the event that must be delivered before noon.

FAQ

Questions about this tutorial

Does this replace a routing app?

No. It's a quick, transparent plan from straight-line distances, a road factor and an average speed, so you can see why one order beats another. Real drive times depend on roads and traffic; for turn-by-turn directions, open the new order in Google Maps and check it.

How many stops can it handle?

Codex's planner checks every possible order for up to ten jobs plus the shop. The number of orders grows fast (8 stops is 40,320 orders; 10 is over 3.6 million), and Google's directions links take up to 9 stops, fewer in some mobile browsers.

Where do I get each stop's latitude and longitude?

Right-click the place in Google Maps on a computer: its coordinates are the first line of the menu, and clicking them copies them. Many scheduling and CRM apps can export them with the job list too.

Does Codex come with ChatGPT Plus?

Yes. OpenAI's pricing page lists Codex in ChatGPT Plus ($20 a month) and other plans, with usage limits (checked Nov 2, 2026). We recorded this on a ChatGPT Pro account and haven't tested it on Plus.

Is my customer list uploaded anywhere?

The file you attach becomes part of that Codex chat, so attach only what the route needs. The planner runs in your browser and doesn't upload what you paste; Open in Google Maps sends the stops' coordinates to Google when you click it.

Does this work in Claude?

Yes. We filmed it in Codex, then ran the prompt on this page on three Claude models through Claude Code, Anthropic's command-line tool. Claude Sonnet 5.5 and Opus 5.5 built planners that passed every check. Claude Haiku 5.5 scored 36 out of 100: its own sample line for the shop had a comma in the name, which its planner read as a separate field, so Load sample data showed an error. The scores are under “What this costs to run”.

Want it to do more?

Spend tomorrow on jobs, not on the road.

MediaMentorAI sets up scheduling and dispatch automation for service businesses, so tomorrow's route is planned from the bookings before the van leaves.