ZeqTraffic
Traffic signal optimization and flow modeling. Zeqond-timed green wave synchronization, congestion prediction, accident probability scoring using R(t) vehicle density.
| Endpoint | POST /api/infra/traffic |
| Auth | api-key |
| Rate limit | 20/min |
| Category | infrastructure |
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
intersections | array | Yes | [{ id, lat, lng, currentPhase, vehicleCount }] |
optimizationGoal | string | No | 'throughput', 'emissions', 'emergency-preempt'. |
Returns
{ signalTimings, greenWaveSpeed_kmh, congestionScore, accidentRisk, zeqond }
Example
curl -sS -X POST \
-H "Authorization: Bearer zsm_..." \
-H "Content-Type: application/json" \
-d '{
"intersections": [],
"optimizationGoal": "throughput"
}' \
"https://zeqsdk.com/api/infra/traffic"
This protocol is a named building block — one of the operations you
compose inside a state contract. Call it directly with
the request above, or invoke it from a contract that fires on your machine's
clock. Browse the whole library at GET /api/protocols; fetch this one at
GET /api/protocols/zeq-traffic.