amap-traffic
高德地图实时路况查询与最优自驾路线规划技能。基于高德交通态势API和路径规划API,提供实时拥堵信息和最快路线建议。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/robin797860/amap-traffic高德实时路况与路线规划
概述
本技能通过高德地图API实现:
- 实时路况查询:获取指定道路/区域的拥堵状态
- 智能路线规划:基于实时路况计算最快自驾路线
- 多方案对比:提供时间、距离、费用等维度的路线比较
🔑 API Key 配置
- 访问 高德开放平台 创建 Key
- 在 OpenClaw Web 配置页面设置:
地址: http://127.0.0.1:18789/skills
配置文件字段:skills.entries.amap-traffic.AMAP_KEYinopenclaw.json
值: 你的高德API Key
注意: 本技能每次调用时都会重新读取
openclaw.json中的最新AMAP_KEY,支持前端动态更新密钥后立即生效。
API 使用说明
1. 实时路况查询
curl "https://restapi.amap.com/v3/traffic/status/road?roadid={道路ID}&key={动态读取的AMAP_KEY}"
2. 智能路线规划(含实时路况)
curl "https://restapi.amap.com/v3/direction/driving?origin={起点坐标}&destination={终点坐标}&strategy=2&key={动态读取的AMAP_KEY}"
strategy=2:优先考虑实时路况的最快路线
路况状态说明
- 畅通:🟢 绿色(速度 > 40km/h)
- 缓行:🟡 黄色(20-40km/h)
- 拥堵:🔴 红色(< 20km/h)
- 严重拥堵:🟣 紫红色(< 10km/h)
资源
scripts/
包含高德实时路况查询和路线规划的核心脚本。
scripts/amap_traffic.py
Python 脚本,实现完整的实时路况查询和最优路线规划功能。
每次执行时都会从 /home/admin/.openclaw/openclaw.json 读取最新的 AMAP_KEY,
确保前端动态更新密钥后立即生效。
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-robin797860-amap-traffic": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
qwen-image
Generate images using Qwen Image API (Alibaba Cloud DashScope). Use when users request image generation with Chinese prompts or need high-quality AI-generated images from text descriptions.
find-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
otaku-reco
二次元鉴赏/推荐 Agent:基于 AniList 实时数据做智能推荐(无需数据库)
stock-watcher
Manage and monitor a personal stock watchlist with support for adding, removing, listing stocks, and summarizing their recent performance using data from 10jqka.com.cn. Use when the user wants to track specific stocks, get performance summaries, or manage their watchlist.
otaku-wiki
番剧/角色百科问答:用 AniList API 快速查番、查角色、查声优与作品关联(无需数据库)