# Send Amap Traffic to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "amap-traffic",
    "name": "Amap Traffic",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Robin797860/amap-traffic",
    "canonicalUrl": "https://clawhub.ai/Robin797860/amap-traffic",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/amap-traffic",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=amap-traffic",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/amap_traffic.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "amap-traffic",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T23:21:26.316Z",
      "expiresAt": "2026-05-06T23:21:26.316Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=amap-traffic",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=amap-traffic",
        "contentDisposition": "attachment; filename=\"amap-traffic-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "amap-traffic"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/amap-traffic"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/amap-traffic",
    "downloadUrl": "https://openagent3.xyz/downloads/amap-traffic",
    "agentUrl": "https://openagent3.xyz/skills/amap-traffic/agent",
    "manifestUrl": "https://openagent3.xyz/skills/amap-traffic/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/amap-traffic/agent.md"
  }
}
```
## Documentation

### 概述

本技能通过高德地图API实现：

实时路况查询：获取指定道路/区域的拥堵状态
智能路线规划：基于实时路况计算最快自驾路线
多方案对比：提供时间、距离、费用等维度的路线比较

### 🔑 API Key 配置

访问 高德开放平台 创建 Key
在 OpenClaw Web 配置页面设置：
地址: http://127.0.0.1:18789/skills
配置文件字段: skills.entries.amap-traffic.AMAP_KEY in openclaw.json
值: 你的高德API Key

注意: 本技能每次调用时都会重新读取 openclaw.json 中的最新 AMAP_KEY，支持前端动态更新密钥后立即生效。

### 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，
确保前端动态更新密钥后立即生效。
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Robin797860
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T23:21:26.316Z
- Expires at: 2026-05-06T23:21:26.316Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/amap-traffic)
- [Send to Agent page](https://openagent3.xyz/skills/amap-traffic/agent)
- [JSON manifest](https://openagent3.xyz/skills/amap-traffic/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/amap-traffic/agent.md)
- [Download page](https://openagent3.xyz/downloads/amap-traffic)