/install self-drive-planner
自驾出行规划
帮助用户规划自驾出行,提供基于高德地图实时数据的路线规划、费用估算、沿途服务设施和驾驶建议。
工具
1. plan_route
规划自驾路线,输出距离、时间、过路费、油耗估算和分段建议。
输入:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| origin | string | YES | 出发地(城市名/地名) |
| destination | string | YES | 目的地(城市名/地名) |
| waypoints | string | NO | 途经点,逗号分隔 |
| strategy | int | NO | 0=速度优先,1=费用优先,2=距离优先,默认0 |
输出: 距离(km)、预计时间(h)、过路费(元)、油耗估算(元)、分段建议(每2-3小时休息点)、途经城市列表
2. search_poi_along
搜索沿途或指定位置周边的服务设施(加油站/充电桩/服务区/停车场/餐厅)。
输入:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| location | string | YES | 位置(地名/城市名) |
| poi_type | string | YES | 设施类型:gas_station/charging/service_area/parking/restaurant |
| radius | int | NO | 搜索半径(米),默认5000 |
输出: POI名称、地址、距离、经纬度
3. trip_weather
查询出发地、目的地及沿途城市的天气,给出驾驶天气建议。
输入:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| cities | string | YES | 城市名列表,逗号分隔(如"北京,济南,南京,上海") |
输出: 每个城市天气状况、温度、风力、降雨概率、驾驶建议
触发条件
用户明确表达自驾出行规划需求时触发,包括:自驾游、自驾出行、开车去某地、驾车路线查询、自驾行程安排、road trip规划。仅查公交/地铁/火车路线时不触发。
数据流
用户输入 → 本技能 → 代理服务 → 高德地图API → 返回路线/POI/天气数据 → 本技能分析生成建议
核心逻辑
路线规划
- 调用高德驾车路线规划API获取距离、时间、过路费
- 根据距离估算油耗(轿车7L/100km,SUV 9L/100km,默认按8L/100km + 油价8元/L)
- 每2-3小时驾驶插入休息建议
- 如有途经点,分段计算
疲劳驾驶提醒
- 连续驾驶超过3小时:强烈建议休息15-20分钟
- 连续驾驶超过4小时:强制建议休息30分钟以上
- 夜间驾驶(22:00-06:00):建议缩短连续驾驶时长至2小时
- 提供沿途服务区位置供选择休息点
天气建议
- 暴雨/大雪:建议推迟出行或选择替代路线
- 大雾:建议避开高速,走国道
- 高温(>35°C):提醒检查轮胎和冷却液
- 低温(\x3C0°C):提醒检查防冻液和雪地胎
费用估算
- 过路费:高德API直接返回
- 油费:距离 × 油耗率 × 油价
- 电费(新能源):距离 × 百公里电耗(15kWh) × 电价(0.6元/kWh)
- 总费用 = 过路费 + 燃料费
佣金声明
本技能路线规划结果不含商业排序,过路费和油耗为高德API返回值和标准公式估算。部分目的地搜索结果可能包含飞猪等平台的预订链接,同价时优先展示佣金较高的平台。
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install self-drive-planner - After installation, invoke the skill by name or use
/self-drive-planner - Provide required inputs per the skill's parameter spec and get structured output
What is 自驾出行规划?
自驾出行智能规划助手,提供路线规划、过路费与油耗估算、沿途天气、加油站与充电桩搜索、疲劳驾驶提醒及多日行程编排。当用户提到自驾游、自驾出行、开车去、road trip、驾车路线、自驾攻略时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 28 downloads so far.
How do I install 自驾出行规划?
Run "/install self-drive-planner" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 自驾出行规划 free?
Yes, 自驾出行规划 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 自驾出行规划 support?
自驾出行规划 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 自驾出行规划?
It is built and maintained by 旅行技能 (@travel-skills); the current version is v1.0.0.