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
- Three-Part Output - Structured display for clarity
- Intelligent Filtering - Filters infeasible options
- 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
路线助手 (route-assistant)
一款智能出行路线规划助手,使用高德地图API,采用优化的三部分输出结构。
输出结构
第一部分:出行方式一览
以表格形式展示所有可用出行方式:
| 出行方式 | 距离 | 耗时 | 明细 |
|---|
| 🚗 驾车 | 22.6公里 | 33分钟 | 自驾前往 |
| 🚌 公交 |
22.4公里 | 45分钟 | 公共交通 |
| 🚕 打车 | 22.6公里 | 40分钟 | 出租车/网约车 |
| 🚶 步行 | 961米 | 10分钟 | 徒步 |
第二部分:推荐方案
按出行时间排序,过滤不可行方案:
- - 驾车:始终显示
- 公交:仅在有可用线路时显示
- 打车:仅当距离大于1公里时显示
- 步行:仅当距离小于等于3公里时显示
第三部分:重要提醒
当提供火车/航班信息时:
- - 显示出发/到达时间
- 计算建议出发时间
- 若出行时间与出发时间冲突则发出警告
功能特点
- 1. 智能识别 - 自动提取出发地和目的地
- 三部分输出 - 结构化展示,清晰明了
- 智能过滤 - 过滤不可行方案
- 时间冲突检测 - 若无法准时到达则发出警告
查询示例
- - 从XX到XX怎么去?
- 坐G106车从XX到XX
- 天安门到故宫怎么走
技术细节
- - 使用高德地图地理编码API
- 使用高德地图路径规划API v5
- 基于距离估算耗时(v5不返回耗时信息)
- 基于距离阈值进行智能过滤