Industrial zones ranked by traffic
citiq_archive · 24h window · click to focus
Live traffic & 6-hour forecast
Active alerts
…
Bottlenecks
Opportunities
…
Extensions / new routes
Est. net benefit
…
Revenue − cost / year
Frequency
every 60 min
Automated pg_net cron
How the agent reasons
Input data
- • DKV stops and routes (
dkv_route_stops) - • Real schedules (
dkv_service_schedule) - • Passengers carried (
dkv_line_stats) - • CITIQ sensors last 2 hr (
citiq_archive) - • 4 industrial zones: CATL · BMW · Kishegyesi · Józsa
Economic formula
- • Cost = ext_km × 2 × trips/day × 930 HUF/km × 260 days
- • Revenue = yearly_passengers × 5% capture × 650 HUF/ticket
- • ROI = revenue / cost (ROI > 1 is profitable)
- • Bottleneck: >500 veh/hr on nearby sensors
- • Walk-time at 4.8 km/h
The agent runs automatically every hour via pg_cron + pg_net. When it detects an active bottleneck, it emits an immediate P1 alert. Every recommendation includes reasoning, metrics and cost/benefit.
