高德地图实时路况查询与最优自驾路线规划技能。基于高德交通态势API和路径规划API,提供实时拥堵信息和最快路线建议。
Scanned 9/7/2026
Install to Claude Code
npx -y skills add modbender/skill-library-mcp --skill amap-traffic --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Amap Traffic?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-amap-traffic)More formats (shields.io, HTML) on the badges page.
---
name: amap-traffic
description: 高德地图实时路况查询与最优自驾路线规划技能。基于高德交通态势API和路径规划API,提供实时拥堵信息和最快路线建议。
metadata:
{
"openclaw":
{
"emoji": "🚗",
"requires": { "env": ["AMAP_KEY"] },
"primaryEnv": "AMAP_KEY",
channels: ["webchat", "dingtalk", "qq"]
},
}
---
# 高德实时路况与路线规划
## 概述
本技能通过高德地图API实现:
1. **实时路况查询**:获取指定道路/区域的拥堵状态
2. **智能路线规划**:基于实时路况计算最快自驾路线
3. **多方案对比**:提供时间、距离、费用等维度的路线比较
## 🔑 API Key 配置
1. 访问 [高德开放平台](https://console.amap.com/) 创建 Key
2. 在 OpenClaw Web 配置页面设置:
**地址**: http://127.0.0.1:18789/skills
**配置文件字段**: `skills.entries.amap-traffic.AMAP_KEY` in `openclaw.json`
**值**: 你的高德API Key
> **注意**: 本技能每次调用时都会重新读取 `openclaw.json` 中的最新 `AMAP_KEY`,支持前端动态更新密钥后立即生效。
## API 使用说明
### 1. 实时路况查询
```bash
curl "https://restapi.amap.com/v3/traffic/status/road?roadid={道路ID}&key={动态读取的AMAP_KEY}"
```
### 2. 智能路线规划(含实时路况)
```bash
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**,
确保前端动态更新密钥后立即生效。Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...