|
| 1 | +# Travel Planning Best Practices |
| 2 | + |
| 3 | +## Core Principle |
| 4 | + |
| 5 | +Real travel planning is **directional exploration**, not point collection. |
| 6 | + |
| 7 | +A human plans: "Start south at Fushimi Inari, walk up to Kiyomizu-dera, eat lunch somewhere along the way in Gion, then head west to Arashiyama for evening." |
| 8 | + |
| 9 | +An algorithm plans: "Here are the top 10 rated places. Optimizing shortest path..." |
| 10 | + |
| 11 | +The difference is **arc thinking** — one direction per day, discovering things along the way. |
| 12 | + |
| 13 | +--- |
| 14 | + |
| 15 | +## The 6-Layer Decision Model |
| 16 | + |
| 17 | +Human travel planners think in layers. Each layer constrains the next. |
| 18 | + |
| 19 | +### Layer 1: Anchor Discovery |
| 20 | +**What:** Find 4-6 must-visit landmarks spread across the city. |
| 21 | +**Tool:** `search_places("top attractions in {city}")` |
| 22 | +**Why it works:** Google's algorithm returns geographically diverse results. Kyoto → Fushimi(south), Kiyomizu(east), Kinkaku-ji(north), Arashiyama(west) — natural 8km×10km spread. |
| 23 | + |
| 24 | +### Layer 2: Arc Design |
| 25 | +**What:** Connect anchors into one-directional arcs per day. Edge landmarks go at start/end of a day. |
| 26 | +**Tool:** `distance_matrix` between anchors to understand spatial relationships. |
| 27 | +**Rule:** Never backtrack. Each day sweeps one direction (south→north, east→west). |
| 28 | + |
| 29 | +Example: |
| 30 | +``` |
| 31 | +Day 1: Fushimi(south) → Kiyomizu(east) → Gion → Pontocho(center) [south→center arc] |
| 32 | +Day 2: Nishiki(center) → Nijo Castle → train → Arashiyama(west) [center→west arc] |
| 33 | +``` |
| 34 | + |
| 35 | +### Layer 3: Time-Slot Matching |
| 36 | +**What:** Assign anchors to times based on **experience quality**, not distance. |
| 37 | +**Tool:** None — this is AI knowledge. |
| 38 | +**Examples:** |
| 39 | +- Fushimi Inari = **early morning** (fewer crowds, best light for photos, hiking needs fresh legs) |
| 40 | +- Outdoor temples = **morning to afternoon** (natural light) |
| 41 | +- Shopping districts = **afternoon** (all stores open) |
| 42 | +- Scenic areas = **late afternoon** (golden hour light) |
| 43 | +- Fine dining = **evening at the final stop** (no rush to next destination) |
| 44 | + |
| 45 | +### Layer 4: Along-Route Filling |
| 46 | +**What:** Between two anchors, find what's **on the way** — not at the destination. |
| 47 | +**Tool:** `search_along_route(textQuery, origin, destination)` |
| 48 | +**This is the key differentiator.** Results are ranked by minimal detour time, not proximity to a point. |
| 49 | + |
| 50 | +``` |
| 51 | +search_along_route("restaurant", "Fushimi Inari, Kyoto", "Kiyomizu-dera, Kyoto", "walking") |
| 52 | +→ Finds restaurants ALONG the 4km walking route, not clustered at either end |
| 53 | +``` |
| 54 | + |
| 55 | +### Layer 5: Meal Embedding |
| 56 | +**What:** Meals appear where the traveler **will be** at mealtime, not where the "best restaurant" is. |
| 57 | +**Logic:** |
| 58 | +1. Estimate what time the traveler reaches each arc segment |
| 59 | +2. Lunch (~12:00) → search_along_route("lunch restaurant", previous_stop, next_stop) |
| 60 | +3. Dinner (~18:00) → search_nearby at the day's final area (no rush) |
| 61 | + |
| 62 | +**Anti-pattern:** "I searched for the best restaurant in the whole city" → it's 3km off the route. |
| 63 | +**Correct:** "You'll be near Gion around noon — here are options along the way." |
| 64 | + |
| 65 | +### Layer 6: Rhythm Validation |
| 66 | +**What:** Check the itinerary feels human, not robotic. |
| 67 | +**Tool:** `plan_route(stops, optimize: false)` to get actual times, `weather` for conditions. |
| 68 | +**Checklist:** |
| 69 | +- [ ] Not 5 temples in a row (alternate: temple → food → walk → shrine → cafe) |
| 70 | +- [ ] Major temples get 90-120 min, not 30 min |
| 71 | +- [ ] Walking per day < 10km (suggest transit for >2km gaps) |
| 72 | +- [ ] Lunch 11:30-13:00, dinner 17:30-19:30 |
| 73 | +- [ ] 5-7 stops per day max (including meals) |
| 74 | +- [ ] Final stop: call `static_map` with markers + path to visualize |
| 75 | + |
| 76 | +--- |
| 77 | + |
| 78 | +## Tool Call Sequence |
| 79 | + |
| 80 | +``` |
| 81 | +Phase 1 — Skeleton (2-3 calls) |
| 82 | + search_places("top attractions in {city}") → anchors |
| 83 | + distance_matrix(all anchors) → spatial relationships |
| 84 | +
|
| 85 | +Phase 2 — Arc + Fill (2-4 calls per day) |
| 86 | + search_along_route("restaurant", stop_A, stop_B) → along-route meals |
| 87 | + search_along_route("cafe", stop_B, stop_C) → along-route breaks |
| 88 | +
|
| 89 | +Phase 3 — Environment (2 calls) |
| 90 | + weather(city coords) → rain → move indoor activities |
| 91 | + air_quality(city coords) → bad AQI → reduce outdoor time |
| 92 | +
|
| 93 | +Phase 4 — Validate + Visualize (2 calls per day) |
| 94 | + plan_route(day_stops, optimize: false) → verify times/distances |
| 95 | + static_map(markers + path) → map for each day |
| 96 | +
|
| 97 | +Total: ~12-16 calls for a 2-day trip |
| 98 | +``` |
| 99 | + |
| 100 | +--- |
| 101 | + |
| 102 | +## Anti-Patterns |
| 103 | + |
| 104 | +| Anti-Pattern | Symptom | Fix | |
| 105 | +|-------------|---------|-----| |
| 106 | +| Single-point explosion | `explore_area("Kyoto")` → all within 1km | search_places for anchors first | |
| 107 | +| Backtracking | east→west→east→west | One direction per day | |
| 108 | +| No along-route search | Meals at endpoints only | `search_along_route` between stops | |
| 109 | +| Distance-optimal ordering | Ignores time-of-day quality | AI assigns time slots before routing | |
| 110 | +| No map output | Text/JSON only | Always `static_map` after each day's route | |
| 111 | +| Over-scheduling | 12 stops in one day | Max 5-7 stops including meals | |
| 112 | +| Same-type clustering | 5 temples consecutively | Alternate activity types | |
| 113 | + |
| 114 | +--- |
| 115 | + |
| 116 | +## Time Budget |
| 117 | + |
| 118 | +| Activity | Duration | |
| 119 | +|----------|----------| |
| 120 | +| Major temple/shrine | 60-120 min | |
| 121 | +| Small shrine / photo spot | 15-30 min | |
| 122 | +| Museum | 90-180 min | |
| 123 | +| Market / shopping street | 60-90 min | |
| 124 | +| Sit-down meal | 60-120 min | |
| 125 | +| Quick meal / street food | 20-40 min | |
| 126 | +| Cafe break | 30-45 min | |
| 127 | +| Walking <1km | 10-15 min | |
| 128 | +| Transit between areas | 20-40 min | |
| 129 | + |
| 130 | +--- |
| 131 | + |
| 132 | +## When to Read This |
| 133 | + |
| 134 | +- User says "plan a trip", "create an itinerary", "plan X days in Y" |
| 135 | +- Trip plan clusters all stops in one area |
| 136 | +- Building multi-day travel content |
0 commit comments