← All articles

Walking Limits as Constraints: AI Trip Planning for the Whole Family

How we turn age, naps, strollers, and walking ability into trip planning constraints for families, and the limited part the LLM plays.

Published

Ask an LLM to “plan a three-day trip for a family of five,” and it will quickly write a plan that looks good. The problem is what the plan usually misses: the two-year-old needs a nap, Grandma can’t walk very far, and a stroller can’t get through an entrance that only has stairs.

A plan that looks good and a plan everyone can actually walk are two different things. Kinwego (in development) is an AI travel assistant for families visiting China from abroad. This post explains how we turn “every family member can manage the day” into constraints in the plan.

First, turn people into constraints

Before planning, parents create a family profile. For each member, it records:

Information How it’s recorded What it’s used for
Age Age group only: infant, child, teen, adult, senior Sets each day’s start and end times and rest breaks
Nap Needed / not needed Reserves a full rest block midday
Tires easily Yes / no Adds a midday rest and slows the pace
Stroller Yes / no Prefers step-free entrances
Mobility No limits, limited walking, wheelchair Sets a walking limit, or requires step-free entrances
Interests Nature, museums, history, food, and more Chooses places
Diet For example, no pork, vegetarian Chooses places to eat

Two of these design choices are about privacy:

  • Age is recorded as an age group only, not a birthday or exact age. The planner only needs to know “this is a child of about two.” It doesn’t need to know the child’s birth date.
  • Diet records the requirement, not the reason. “Doesn’t eat X” is enough. We don’t ask whether it’s because of an allergy or a medical condition.

Then, turn constraints into a daily rhythm

With the family profile, we can work out each day’s rhythm. Some of the rules:

  • Start and end times follow the style of the whole trip. For families who want to see more, roughly 8:30–19:00. For a more relaxed trip, roughly 10:00–17:30.
  • If there’s an infant or anyone who naps, a 90-minute rest is reserved between 13:00 and 15:00. If someone tires easily, a 60-minute midday rest is reserved.
  • If there’s a child under 12, each day ends by 18:30 at the latest.
  • If someone has limited walking, total walking per day is no more than 2,500 m. If someone uses a wheelchair, every place must have a step-free entrance. With a stroller, step-free entrances are preferred.
  • Each day has 3–5 stops. No single walk between two stops is longer than 20 minutes, or 10 minutes when there’s a walking limit.

These rules are written in code and run the same way every time. They don’t depend on the LLM “remembering” them.

The LLM only does what it’s good at

We don’t let the LLM write the itinerary. It does only two things in the process:

  1. Interpret what parents say. For example, from “We’d like to take it easy, and Grandma has bad knees,” the LLM produces a small structured answer: pace is “relaxed,” and Grandma’s mobility is “limited walking.” That answer is then checked item by item against the original words. Information like dates and number of days is read first by fixed rules, and the rules take priority over the model.
  2. Write the reply text. The reply also goes through a check that limits the numbers, links, and promise-like statements it can contain.

Everything in between is done by deterministic code: assigning places to days, ordering each day, calculating times, and checking that everyone can manage the walking. When ordering stops, the code only picks from approved candidate places. It does not make up routes, entrances, opening hours, or booking details.

Why split the work this way? Because parents may follow every time and every walk in the itinerary. These details have to be checkable. They can’t be something the model thinks is “close enough.”

We also don’t use a constraint solver. Our current approach is: the LLM interprets, rules constrain, scheduling is deterministic. There’s a limited number of rules, each with a clear meaning, so problems are easy to trace.

Missing data doesn’t count as fine

During checks, we often run into incomplete data: a place’s opening hours can’t be found, or there’s no record of whether an entrance has steps. Our principles:

  • If we can’t find it, we say “unverified” instead of guessing. If opening hours can’t be parsed, the itinerary marks them as “unverified.”
  • Missing data counts as “unknown,” not zero. If walking distance is missing, it can’t be treated as 0 m to pass the check.
  • Must-haves and nice-to-haves are kept separate. A family member who uses a wheelchair needs a step-free entrance. That’s a must-have. If a place doesn’t meet it, that stop can’t go in the plan, and we explain why. Preferring step-free entrances for a stroller is a nice-to-have. If it isn’t met, we only show a note, and the plan still goes ahead.

When a day doesn’t fit, parents choose

When a day doesn’t fit, the system removes the least important stop and explains why. Places the parents picked themselves are removed only when there’s no other choice, and the reason is stated.

Conflicts that still can’t be resolved are listed separately. Each one comes with a few options, and parents tap to choose. The parents make the final call.

Summary

The hard part of planning a family trip isn’t finding fun places. It’s making sure everyone can manage the day. Our approach: first, turn each member’s needs into clear constraints. Then, schedule and check the plan with fixed rules. The LLM only interprets and writes. When data is incomplete, we say so. When a day doesn’t fit, we hand the choice to the parents.

FAQ

Does the LLM write the itinerary?

No. The LLM only interprets what parents say and writes the reply text. Assigning places to days, ordering them, calculating times, and checking the plan are all done by fixed rules and code.

What happens when a day doesn’t fit?

The least important stop is removed first, with the reason explained. Places the parents picked themselves are removed only when there is no other choice. Any conflicts that still can’t be resolved are listed with a few options, and the parents choose.

Related articles