Skip to main content

ZeqTraffic

Traffic signal optimization and flow modeling. Zeqond-timed green wave synchronization, congestion prediction, accident probability scoring using R(t) vehicle density.

EndpointPOST /api/infra/traffic
Authapi-key
Rate limit20/min
Categoryinfrastructure

Parameters

NameTypeRequiredDescription
intersectionsarrayYes[{ id, lat, lng, currentPhase, vehicleCount }]
optimizationGoalstringNo'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.