Robin797860

Amap Traffic

Life Servicev1.0.0
By Robin797860Updated 2026-05-11amap-traffic@clawhub_robin797860/amap-traffic
Travel Planning

According to AlphaMoat, as of 2026-09, Amap Traffic has 2,739 downloads and 2 stars — ranked #3,920 of 5,078 AI skills overall, and #202 of 246 in Life Service.

Installs
152
Downloads
2.7K
Stars
2
Overall Rank
#3,920
Top 78% overall · Top 83% in Life Service
PlatformInstallsDownloadsStarsComments
ClawHub ↗882.6K2-
SkillHub ↗1522.7K2—

Platforms count differently and update at different times.

What this skill does

The source describes querying traffic on a specified road or area and planning routes based on current traffic, with comparisons such as time, distance, and cost. An Amap API key is required. Location coordinates, route preferences, and traffic data may be sensitive or time-dependent, so verify the destination, route, and current conditions before travel. Requires AMAP_KEY and Python for the helper, or curl for documented requests. The helper rereads a hard-coded OpenClaw configuration path on each run: verify it for this host and protect it. Origin/destination data is sent to Amap and needs approval; returned routes are time-sensitive suggestions, not guaranteed fastest travel.

Profile published 2026-10-27

What you can do with it

  • Check traffic conditions for a specified road or area
  • Compare driving options by time, distance, and cost
  • Organize route choices using current traffic information

When to use it

  • When planning a drive and needing traffic information
  • When an API key is configured and accurate origin and destination details are available

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Compare available driving routes for the origin and destination I provide, including time, distance, and cost; do not expose the API key.

Monthly Trend

Downloads2.7K
1.7K2.2K2.8K2026-03 · Downloads 1.8K2026-05 · Downloads 2.2K2026-06 · Downloads 2.3K2026-07 · Downloads 2.5K2026-08 · Downloads 2.5K2026-09 · Downloads 2.7K26-0326-09
Stars2
1222026-03 · Stars 12026-05 · Stars 22026-06 · Stars 22026-07 · Stars 22026-08 · Stars 22026-09 · Stars 226-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-092.7K—2
2026-082.5K+3.5%2
2026-072.5K+8.4%2
2026-062.3K+4.6%2
2026-052.2K—2
2026-031.8K—1

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.1 KB · ClawHub v1.0.0
---
name: amap-traffic
description: 高德地图实时路况查询与最优自驾路线规划技能。基于高德交通态势API和路径规划API,提供实时拥堵信息和最快路线建议。
metadata: 
  {
    "openclaw": 
      { 
        "emoji": "🚗", 
        "requires": { "env": ["AMAP_KEY"] }, 
        "primaryEnv": "AMAP_KEY",
Show all (59 lines)
        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**,
确保前端动态更新密钥后立即生效。

Popular in Life Service

More from Robin797860

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.