跳到正文
TakoAPI
返回技能列表

traffic-data

由 teweitao 提供

Coding Agents & IDEs
293下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Query traffic data - real-time road conditions, traffic incidents, SCATS intersection data.

描述

该技能的功能

Queries real-time road conditions, traffic incidents, and SCATS intersection data using Baidu Maps and Gaode Maps APIs. Three separate scripts handle road status by road name, city-wide incident listings, and per-intersection SCATS queries.

Wraps Baidu Maps, Gaode Maps, and SCATS into a single CLI interface instead of integrating each API separately.

何时使用

  • Checking congestion on a specific road before commuting
  • Monitoring active traffic incidents across a city
  • Querying SCATS intersection signal status for traffic analysis
  • Pulling live road data into a city logistics dashboard
  • Automating traffic condition alerts for a fleet management system

示例工作流

输入

User asks: What is the current traffic condition on Guangzhou Avenue in Guangzhou?

智能体
  1. 1

    Run road.js with city '广州' and road name '广州大道'

  2. 2

    Send request to Baidu Maps or Gaode Maps real-time traffic API

  3. 3

    Receive congestion level and road status data

  4. 4

    Parse and format the API response

输出

Real-time road condition report for Guangzhou Avenue including congestion status

前置要求

  • BAIDU_MAP_KEY environment variable (Baidu Maps Open Platform account at lbsyun.baidu.com)
  • GAODE_MAP_KEY environment variable (Gaode Maps Open Platform account at lbs.amap.com)
  • SCATS_API_KEY environment variable (required only for SCATS intersection queries)

安装

clawhub install teweitao/traffic-data

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接