Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
agentbay-ai avatar

Amap Traffic

  • 94 installs
  • 47 repo stars
  • Updated February 12, 2026
  • agentbay-ai/agentbay-skills

amap-traffic is a Claude Code skill that queries real-time road conditions and plans fastest driving routes using the AMap (高德) traffic-status and direction APIs.

About

amap-traffic is a Claude Code skill that queries real-time road conditions and plans optimal driving routes using AMap (高德地图) traffic-status and direction APIs. A developer invokes it to check congestion on a road or area and to compute the fastest self-driving route with strategy=2 real-time-traffic weighting. It reads the AMAP_KEY dynamically from openclaw.json on every call so an updated key takes effect immediately. It targets webchat, DingTalk, and QQ channels.

  • Queries real-time road traffic via the AMap (高德) traffic-status API
  • Plans fastest driving routes with strategy=2 real-time-traffic weighting
  • Reads the AMAP_KEY dynamically from openclaw.json on each call

Amap Traffic by the numbers

  • 94 all-time installs (skills.sh)
  • Ranked #834 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

amap-traffic capabilities & compatibility

Requires an AMAP_KEY from console.amap.com; free tier available on the AMap open platform.

Capabilities
traffic status · route planning · maps api
Use cases
research
Pricing
Bring your own API key
From the docs

What amap-traffic says it does

高德地图实时路况查询与最优自驾路线规划技能。基于高德交通态势API和路径规划API,提供实时拥堵信息和最快路线建议。
SKILL.md
`strategy=2`:优先考虑实时路况的最快路线
SKILL.md
npx skills add https://github.com/agentbay-ai/agentbay-skills --skill amap-traffic

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs94
repo stars47
Last updatedFebruary 12, 2026
Repositoryagentbay-ai/agentbay-skills

What it does

A user asks for live traffic or the fastest driving route and the skill calls AMap traffic and direction APIs.

Who is it for?

Checking live road congestion and computing the fastest self-driving route with real-time traffic in China.

Skip if: Regions outside AMap coverage or use without an AMap API key.

When should I use this skill?

A user asks for real-time traffic on a road or area, or the fastest driving route between two points.

What you get

A real-time congestion status and a fastest driving route with time, distance, and cost comparison.

  • real-time congestion status
  • fastest driving route with time/distance/cost comparison

By the numbers

  • 4 congestion levels (畅通/缓行/拥堵/严重拥堵)

Files

SKILL.mdMarkdownGitHub ↗

高德实时路况与路线规划

概述

本技能通过高德地图API实现: 1. 实时路况查询:获取指定道路/区域的拥堵状态 2. 智能路线规划:基于实时路况计算最快自驾路线 3. 多方案对比:提供时间、距离、费用等维度的路线比较

🔑 API Key 配置

1. 访问 高德开放平台 创建 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. 实时路况查询

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, 确保前端动态更新密钥后立即生效。

Related skills

FAQ

What does strategy=2 do?

In the driving direction API, strategy=2 returns the fastest route that prioritizes real-time traffic conditions.

Where does it read the API key?

It re-reads the latest AMAP_KEY from openclaw.json on every call, so a front-end key update takes effect immediately.

Automation & Workflowsintegrationsbackend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.