MCP HubMCP Hub
스킬 목록으로 돌아가기

plan-tour-route

pjt222
업데이트됨 2 days ago
5 조회
17
2
17
GitHub에서 보기
메타apidata

정보

이 스킬은 OpenStreetMap 데이터를 활용하여 최적화된 다중 경유지 관광 루트를 계획하며, 웨이포인트 순서 지정, 이동 시간 추정, 관심 지점(POI) 탐색 기능을 제공합니다. 목적지 간 이동 시간을 최소화하거나 다양한 교통 수단을 비교해야 하는 여행 애플리케이션을 개발하는 개발자에게 이상적입니다. 주요 기능으로는 지오코딩, TSP 기반 최적화, 관심 지점을 포함한 여행 일정 생성이 포함됩니다.

빠른 설치

Claude Code

추천
기본
npx skills add pjt222/agent-almanac -a claude-code
플러그인 명령대체
/plugin add https://github.com/pjt222/agent-almanac
Git 클론대체
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/plan-tour-route

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

ツアールートの計画

Plan and optimize a multi-stop tour route with time estimates, distance calculations, and points of interest along the way.

使用タイミング

  • Planning a road trip or walking tour with multiple destinations
  • Optimizing visit order to minimize total travel time or distance
  • Discovering restaurants, viewpoints, or cultural sites along a route
  • Generating a day-by-day itinerary with realistic time budgets
  • Comparing driving vs. walking vs. public transport options

入力

  • 必須: List of waypoints (place names, addresses, or coordinates)
  • 必須: Travel mode (driving, walking, cycling, public transport)
  • 任意: Start and end points (if different from first/last waypoint)
  • 任意: Time constraints (departure time, must-arrive-by, opening hours)
  • 任意: POI categories to discover (food, viewpoints, museums, fuel)
  • 任意: Preferred route type (fastest, shortest, scenic)

手順

ステップ1: Define Waypoints

Collect and structure all stops the tour must include.

Waypoint Schema:
┌──────────┬────────────────────────────────────────────┐
│ Field    │ Description                                │
├──────────┼────────────────────────────────────────────┤
│ name     │ Human-readable label for the stop          │
│ address  │ Street address or place name               │
│ lat/lon  │ Coordinates (if known; otherwise geocode)  │
│ duration │ Time to spend at this stop (minutes)       │
│ priority │ Must-visit vs. nice-to-have                │
│ hours    │ Opening/closing times (if applicable)      │
│ notes    │ Parking, accessibility, booking required    │
└──────────┴────────────────────────────────────────────┘

Separate fixed-order waypoints (e.g., hotel at start and end) from reorderable waypoints.

期待結果: A structured list of all waypoints with at minimum a name and either an address or coordinates for each.

失敗時: If a waypoint is ambiguous (e.g., "the castle"), use WebSearch to resolve it to a specific location. If coordinates are needed but only a name is available, defer to Step 2 for geocoding.

ステップ2: Geocode and Validate

Convert all waypoints to latitude/longitude coordinates and verify they are reachable.

Geocoding Sources (in preference order):
1. Nominatim (OpenStreetMap) - free, no key required
   https://nominatim.openstreetmap.org/search?q=QUERY&format=json

2. Overpass API - for POI-type queries
   https://overpass-api.de/api/interpreter

3. Manual coordinates from mapping services

For each waypoint:

  1. Query the geocoding service with the address or place name
  2. Verify the returned coordinates are in the expected region
  3. Check that multiple results are disambiguated (pick the correct one)
  4. Store coordinates alongside the original waypoint data

期待結果: Every waypoint has valid latitude/longitude coordinates, and all points fall within a plausible geographic region (no outliers on wrong continents).

失敗時: If geocoding returns no results, try alternative spellings, add region/country qualifiers, or search for nearby landmarks. If a waypoint is in a remote area with poor OSM coverage, use WebSearch to find coordinates from travel blogs or tourism sites.

ステップ3: Optimize Route Order

Determine the visit sequence that minimizes total travel time or distance.

Optimization Strategies:
┌─────────────────────┬────────────────────────────────────────┐
│ Strategy            │ When to use                            │
├─────────────────────┼────────────────────────────────────────┤
│ Fixed order         │ Stops must be visited in given sequence│
│ Nearest neighbor    │ Quick approximation for 5-15 stops     │
│ TSP solver          │ Optimal ordering for any number        │
│ Time-window aware   │ Stops have opening hours constraints   │
│ Cluster-then-route  │ Stops span multiple days/regions       │
└─────────────────────┴────────────────────────────────────────┘

For the nearest-neighbor heuristic:

  1. Start at the designated origin
  2. From the current position, select the unvisited waypoint closest by travel time
  3. Move to that waypoint and mark it visited
  4. Repeat until all waypoints are visited
  5. Return to the designated end point (if round trip)

For multi-day tours, cluster waypoints by geographic proximity first, then optimize within each day.

期待結果: An ordered sequence of waypoints that produces a route without excessive backtracking. Total distance should be within 20% of the theoretical optimum for fewer than 10 stops.

失敗時: If the nearest-neighbor result has obvious backtracking (later stops are closer to earlier ones), try reversing the route or use a 2-opt improvement: swap pairs of edges and keep the swap if it shortens the route. For time-window constraints, verify that arrival times at each stop fall within opening hours.

ステップ4: Calculate Times and Distances

Compute travel time and distance for each leg of the route.

Time Estimation Methods:
┌──────────────┬────────────┬────────────────────────────────┐
│ Mode         │ Avg Speed  │ Notes                          │
├──────────────┼────────────┼────────────────────────────────┤
│ Highway      │ 100 km/h   │ Varies by country/road type    │
│ Rural road   │ 60 km/h    │ Add 20% for winding roads      │
│ City driving │ 30 km/h    │ Add time for parking            │
│ Walking      │ 4.5 km/h   │ Flat terrain; reduce for hills │
│ Cycling      │ 15 km/h    │ Touring pace with luggage      │
│ Hiking       │ 3-4 km/h   │ Use Munter formula for accuracy│
└──────────────┴────────────┴────────────────────────────────┘

For each consecutive pair of waypoints:

  1. Calculate straight-line (haversine) distance as a baseline
  2. Apply a detour factor (1.3 for roads, 1.4 for urban, 1.2 for highways)
  3. Estimate travel time from adjusted distance and mode speed
  4. Add buffer time: 10% for driving, 15% for public transport
  5. Sum leg times plus dwell times at each stop for total tour duration

期待結果: A time/distance matrix for all legs, with a running cumulative time that accounts for both travel and dwell time at each stop. Total tour duration should be realistic (not exceeding available daylight for walking tours).

失敗時: If estimated times seem unrealistic (e.g., 2 hours for a 10 km city drive), check whether the detour factor is appropriate. For mountain roads, increase the detour factor to 1.6-2.0. For public transport, use WebSearch to check actual timetables rather than estimating.

ステップ5: Generate Itinerary with POIs

Compile the optimized route into a complete itinerary with discovered points of interest.

POI Discovery (Overpass API query pattern):
  [out:json];
  (
    node["tourism"="viewpoint"](around:RADIUS,LAT,LON);
    node["amenity"="restaurant"](around:RADIUS,LAT,LON);
    node["amenity"="cafe"](around:RADIUS,LAT,LON);
  );
  out body;

Recommended search radius:
- Along route corridor: 500 m for walking, 2 km for driving
- At waypoints: 1 km radius

Build the itinerary document:

  1. Header with tour name, dates, total distance, total time
  2. For each day (if multi-day):
    • Day summary (start, end, total km, total hours)
    • For each leg: departure time, travel mode, distance, duration
    • For each stop: arrival time, dwell time, description, POIs nearby
  3. Logistics section: parking, fuel stops, rest areas, emergency contacts
  4. Map reference (link to route on OpenStreetMap or export as GPX)

期待結果: A complete, time-budgeted itinerary document with realistic schedules, POI suggestions at each stop, and practical logistics information.

失敗時: If POI queries return too many results, filter by rating or relevance. If the itinerary exceeds available time, mark lower-priority stops as optional or split into additional days. If no POIs are found in remote areas, note this and suggest the traveler research locally on arrival.

バリデーション

  • All waypoints are geocoded with valid coordinates
  • Route order minimizes backtracking (no obvious inefficiencies)
  • Travel times are realistic for the chosen mode
  • Dwell times at each stop are accounted for
  • Total tour duration fits within the available time window
  • POIs are relevant and located near the route
  • Opening hours of time-sensitive stops are respected
  • Itinerary includes practical logistics (parking, fuel, rest stops)

よくある落とし穴

  • Ignoring opening hours: Optimizing purely by distance can route you to a museum after it closes. Always check time-window constraints for attractions.
  • Underestimating urban travel: City driving and parking can double the expected time. Add generous buffers for urban stops.
  • Over-packing the itinerary: Filling every minute leaves no room for delays or spontaneous discoveries. Build in 30-60 minutes of slack per half-day.
  • Straight-line distance fallacy: Haversine distance severely underestimates actual road distance, especially in mountainous or coastal terrain. Always apply a detour factor.
  • Forgetting return logistics: One-way routes need plans for returning rental cars, catching trains, or arranging pickup.
  • Seasonal road closures: Mountain passes, ferries, and scenic routes may be closed seasonally. Verify access dates before routing.

関連スキル

  • create-spatial-visualization — render the planned route on an interactive map
  • generate-tour-report — compile the itinerary into a formatted Quarto report
  • plan-hiking-tour — specialized planning for hiking segments within a tour
  • assess-trail-conditions — check conditions for any walking/hiking legs

GitHub 저장소

pjt222/agent-almanac
경로: i18n/ja/skills/plan-tour-route
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

연관 스킬

content-collections

메타

이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.

스킬 보기

polymarket

메타

이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.

스킬 보기

creating-opencode-plugins

메타

이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.

스킬 보기

sglang

메타

SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.

스킬 보기