Can AI plan the best trick-or-treating route in any US city?

Short answer: On Sam Nadler's suggestion, Jordan Metzner one-shots a trick-or-treat route planner that uses Google Maps. For an eight-year-old in Beverly Hills it recommends a one-hour route in the Flats with safety tips.

Watch this answer from Episode 19

Watch this answer from Episode 19 (starts at 8:22) · Episode 19 notes and transcript

What was said on Built This Week

From Episode 19: Mirror, Mirror on the Wall… Who Built the Smartest AI of All?, starting at 8:22.

Sam Nadler [8:22]: Can we try just in the essence of creating something a little bit different, maybe try a different prompt just to here, I'll give it to you. What about what if we had a route optimization for trick or treating, and we paste in a either a neighborhood or a screenshot of map coordinates and with the goals being to cover as many residential homes as possible. And, we can put in our parameters for total number of miles or kilometers walk, total radius, etcetera, and just see, what we can do. It's slightly more practical. Maybe your, business is looking to optimize a route for deliveries or something like this. In this case, it's, optimize, number of houses covered or something like that. And, it allows any, user in The US to choose their city, choose their neighborhood, select the parameters, maybe how old they are, five to 18 or whatever the different parameters are, and it can tell you, okay. Well, you should hit the Westwood area of Los Angeles or something like that.

Jordan Metzner [9:42]: Alright. So I wrote, like, you Know, please create a route tool that optimizes my route for trick or treating to cover as many good homes as possible to do a one hour trick or treat in any city in The USA by number of houses covered, allow any user to pick their own city, how old, what other parameters they want, and tell it where to go and what's best. Does that sound good? Any other changes? Okay. Cool. So maybe we can build that. Alright. Well, a good thing that building on top of the Google stack is obviously that they have Google Maps. Part of this tool, like I mentioned, they give you features. So it says here, integrate real time weather data. But, yeah, it said integrate route, excuse me, integrate weather just in case that's an impact. It also suggesting to allow users to create profiles and save their preferences of past routes. So that's kind of a cool idea as well. Maybe we'd add that in the future. And let's see.

Jordan Metzner [10:33]: It even recommends using let's see what other feature it had. Predicting which houses are likely to give out the best candy based on historical data and user reported information. So, maybe you want to take some notes on which houses gave you the best candy last year and then you can

Sam Nadler [10:52]: Yeah. Those full candy bar houses, you wanna revisit those every year.

Jordan Metzner [10:58]: Oh, yeah. Alright. So it is building right now, so there's not that much to see, but just give it just a few seconds here. Alright. So let's do like Beverly Hills, California. Let's say eight years old, quality candy five out of 10, spookiness five out of 10, find my route. Alright. So it's consulting the spirits of the sweetest spots. Routes are generated by suggestions, always trick or treat with caution and adult supervision. And again, this is a one shot, know, we haven't done any follow-up here yet. So let's see how this goes. Alright. The Flats of Beverly Hills recommended neighborhood start on Crescent Boulevard. The spooky stroll for a one hour route, start here, walk north, go here. Then it says, why is this good? The Flats of Beverly Hills is renowned for excellent trick or treating environment. It boosts the highest density of well maintained single family homes that are typically generous with candy and perfectly aligning for at least a five out of 10 candy quality experience. The streets are wide, well lit, and generally flat, making it safe and easy to navigate for children. Many residents embrace Halloween. Okay?

Jordan Metzner [12:09]: And then it's just given us some safety tips as well. So, yeah, Trick or Treat Planner. Now we've built multiple apps in this episode, and you just see how easy that is. And as I mentioned before, recommended route optimization based on weather and any other things we could add here.

Sam Nadler [12:28]: And if you wanna make a suggestion, you just prompt it down here as a, an iterative, and maybe add a note taking feature. So as you visit these homes, you can record who had licorice and who gave out the full Snickers bars.

Jordan Metzner [12:50]: That's right. And you can also click some of the suggested features like AI features, which it'll just generate some, add a current location button, improve the route optimization visualization, and, yeah, just gonna go do it.

More questions from this episode

Go deeper

New episode every week

Watch us build with AI, live.

Real builds, founder interviews and the AI news that matters. Join 43K+ builders on YouTube.

▶ Subscribe on YouTubeBrowse all episodes →