Route Assistant

Data & APIs

Intelligent route planning assistant with smart filtering. Query driving, transit, taxi, walking routes with Amap API. Auto-filters infeasible options.

Install

openclaw skills install route-assistant

Route Assistant (route-assistant)

An intelligent travel route planning assistant with optimized three-part output structure using Amap (高德地图) API.

Output Structure

Part 1: 出行方式一览 (Transport Options Table)

Shows all available transport methods in table format:

出行方式距离耗时明细
🚗 驾车22.6公里33分钟自驾前往
🚌 公交22.4公里45分钟公共交通
🚕 打车22.6公里40分钟出租车/网约车
🚶 步行961米10分钟徒步

Part 2: 推荐方案 (Recommended Schemes)

Sorted by travel time, filters infeasible options:

  • Driving: Always shown
  • Transit: Only if available
  • Taxi: Only if distance > 1km
  • Walking: Only if distance ≤ 3km

Part 3: 重要提醒 (Important Reminders)

When train/flight info is provided:

  • Shows departure/arrival times
  • Calculates suggested departure time
  • Warns if travel time conflicts with departure time

Features

  1. Smart Recognition - Automatically extracts origin and destination
  2. Three-Part Output - Structured display for clarity
  3. Intelligent Filtering - Filters infeasible options
  4. Time Conflict Detection - Warns if can't make it on time

Query Examples

  • "从XX到XX怎么去?"
  • "坐G106车从XX到XX"
  • "天安门到故宫怎么走"

Technical Details

  • Uses Amap Geocoding API
  • Uses Amap Direction API v5
  • Duration estimated based on distance (v5 doesn't return duration)
  • Smart filtering based on distance thresholds