← 返回
未分类 Key 中文

TomTom Traffic Intelligence

Provides real-time traffic data, route calculation, and departure planning using TomTom Traffic API for commute and meeting alerts.
提供实时交通数据、路线计算和出发规划,使用TomTom交通API支持通勤和会议提醒。
jkimnw-code jkimnw-code 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 455
下载
💾 0
安装
1
版本
#latest

概述

Traffic Intelligence Skill

Overview

Provides real-time traffic monitoring, route calculation, and departure planning using TomTom Traffic API (2,500 free requests/day).

Prerequisites

  1. TomTom Developer Account: https://developer.tomtom.com/
  2. API Key from TomTom Traffic API
  3. Set environment variable: export TOMTOM_API_KEY="your_key_here"

Configuration

Default locations are configured for Seattle/Bellevue area. Edit ./traffic-check.js to update:

  • CONFIG.locations: Set your home, work, and frequent destinations
  • CONFIG.buffers: Adjust parking, coffee, and meeting buffer times

Usage

Direct CLI Commands

# Check current commute (home → work)
node ./traffic-check.js check

# Plan departure for 8:00 AM meeting
node ./traffic-check.js meeting 08:00

# Test API connection
node ./traffic-check.js test

Integration with Meeting Alerts

The traffic module can be called from other scripts to enhance meeting alerts with real-time traffic data.

Example Integration

const TrafficIntelligence = require('./traffic-check.js');
const traffic = new TrafficIntelligence(process.env.TOMTOM_API_KEY);

// Get traffic-aware departure time for coffee meeting
const route = await traffic.calculateRoute(home, coffeeShop);
const meetingInfo = traffic.calculateDepartureTime(
  meetingTime,
  route.totalTimeMinutes,
  { meetingBuffer: 10 }
);

console.log(traffic.generateAlert(route, meetingInfo));

API Limits

  • Free Tier: 2,500 requests/day
  • Recommendation: Cache results for 5-10 minutes during peak hours
  • Monitoring: Check TomTom dashboard for usage statistics

Error Handling

  • Missing API key: Error message with setup instructions
  • API failure: Graceful degradation with cached/last-known data
  • Network issues: Retry logic with exponential backoff

Security Notes

  • API key stored in environment variable (not in code)
  • No sensitive location data logged
  • Rate limiting to prevent accidental overuse

Future Enhancements

  1. Historical traffic patterns
  2. Weather integration (rain/snow impact)
  3. Multiple route alternatives
  4. Public transit integration
  5. Traffic camera status

Maintainer: Agent M

Last Updated: 2026-03-19

Status: Operational

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-02 07:24 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,378 📥 320,410
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,081 📥 809,966
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,226 📥 267,812