HERE traffic flow (speeds and jam factor)
here_traffic_flowRetrieve live traffic flow for roads in a bounding box, circle, or corridor, returning jam factor, speed, confidence, and traversability per segment to assess HGV congestion and route risk.
Instructions
Read live traffic flow for roads within a bounding box, circle or corridor using HERE Traffic API v7. Returns jamFactor (0 = free flow, 10 = blocked), current speed, uncapped speed, free-flow speed, confidence and traversability per road segment, plus a location description and OLR reference. locationReferencing is MANDATORY for flow (default ["olr"]). maxJamFactor defaults to 10 so congestion is NOT hidden (HERE's own default of 1.0 would only return free-flowing roads). For HGV route risk assessment: average jam factor and count of jams ≥5 across the corridor is a quick congestion indicator before calling here_route. Note: HERE returns all matching segments; limit truncates the returned list only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "here_traffic_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Centre "lat,lng" for a circular area. Requires radiusM. | |
| bbox | No | Bounding box [west, south, east, north] in degrees, e.g. [-2.35,53.42,-1.50,53.83] for Greater Manchester. | |
| limit | No | Maximum flow segments to return (default 100). | |
| radiusM | No | Radius in metres for the circular area around "at" (used only with at). | |
| maxJamFactor | No | Only segments with jam factor ≤ this (default 10 = include congestion; HERE default 1 would hide jams). | |
| minJamFactor | No | Only segments with jam factor ≥ this (default 0). | |
| corridorRadiusM | No | Corridor half-width in metres (used only with corridorPolyline). | |
| advancedFeatures | No | HERE advanced features (may be billed separately by HERE). | |
| corridorPolyline | No | HERE Flexible Polyline for a corridor filter (e.g. a here_route includePolyline result). Requires corridorRadiusM. | |
| functionalClasses | No | Filter to road functional classes (1 = motorways; 1-3 keeps the HGV trunk network). | |
| locationReferencing | No | Location referencing scheme(s); flow requires at least one (default ["olr"]). |