/install tomtom-traffic-commute
TomTom Traffic Commute
Get real-time commute traffic data using the TomTom Routing API. Returns distance, travel time with live traffic, delay minutes, and ETAs.
Setup
- Get a TomTom API key — free tier at developer.tomtom.com (2,500 free transactions/day)
- Set the environment variable:
TOMTOM_API_KEY
Quick Start
export TOMTOM_API_KEY=yourkey
bash scripts/tomtom-traffic.sh "51.5081,-0.0753" "50.8213,-0.1325"
Usage
Basic query
export TOMTOM_API_KEY=yourkey
bash scripts/tomtom-traffic.sh \x3Corigin-lat,origin-lon> \x3Cdest-lat,dest-lon>
Query with departure time
export TOMTOM_API_KEY=yourkey
bash scripts/tomtom-traffic.sh "51.5081,-0.0753" "50.8213,-0.1325" "2026-06-09T06:45:00+01:00"
Output format
{
"distance_km": 84.2,
"travel_time_min": 63,
"traffic_delay_min": 1,
"traffic_affected_km": 1.1,
"departure_time": "2026-06-05T10:43:27+01:00",
"arrival_time": "2026-06-05T11:46:50+01:00",
"summary": "84.2 km, 63 min (delay: 1 min)"
}
Automate with Cron
Optionally combine with AgentMail for daily commute email notifications. See examples/commute-email.sh for a complete workflow.
Scripts
| Script | Purpose |
|---|---|
scripts/tomtom-traffic.sh |
CLI tool — queries TomTom Routing API. No dependencies. |
examples/commute-email.sh |
Optional: TomTom + AgentMail email workflow |
API Reference
Uses TomTom Routing API v1 /calculateRoute endpoint:
- Endpoint:
https://api.tomtom.com/routing/1/calculateRoute/{origin}:{dest}/json - Parameters:
traffic=true,routeType=fastest - Auth: API key in query string (
key=) - Free tier: 2,500 transactions/day
- Coordinates:
lat,lonformat (decimal degrees) - Departure time: optional — defaults to "now"
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install tomtom-traffic-commute - After installation, invoke the skill by name or use
/tomtom-traffic-commute - Provide required inputs per the skill's parameter spec and get structured output
What is TomTom Traffic Commute?
Get real-time commute traffic using TomTom Routing API. Live travel times, delays, and ETAs. It is an AI Agent Skill for Claude Code / OpenClaw, with 37 downloads so far.
How do I install TomTom Traffic Commute?
Run "/install tomtom-traffic-commute" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is TomTom Traffic Commute free?
Yes, TomTom Traffic Commute is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does TomTom Traffic Commute support?
TomTom Traffic Commute is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created TomTom Traffic Commute?
It is built and maintained by vijays365 (@vijays365); the current version is v1.0.0.