---
title: "Weather-incident correlation"
method: GET
path: "/analytics/weather-correlation"
tags: ["analytics"]
---

# Weather-incident correlation

`GET /analytics/weather-correlation`

Returns aggregated weather conditions across events, grouped by
precipitation type and road surface. Shows how weather conditions
correlate with incident frequency and severity. Requires Pro+ plan.

## Query parameters

- `jurisdiction` string
- `type` string
- `severity` 'minor' | 'moderate' | 'major' | 'critical'
- `from` string, date
- `to` string, date
- `max_dist_km` number
- `limit` integer

## Response `200`

Correlation statistics

- WeatherCorrelationStats[]
  - `avg_severity` number — Weighted severity — critical=4, major=3, moderate=2, else 1.
  - `avg_temp_c` number — Mean temperature in Celsius, averaged over the normalized `temperature_c` values. Snapshots whose source unit could not be established are excluded from the average rather than mixed in; when no snapshot in the group has a known unit, the field is omitted. Sensor "no reading" markers (some feeds signal an offline sensor with an out-of-band value rather than omitting the field) are excluded as well, so the mean reflects real observations only.
  - `avg_visibility` number — Mean visibility across the group's snapshots, in the units the sources publish. Not normalized — compare within one jurisdiction.
  - `avg_wind_speed` number — Mean wind speed across the group's snapshots, in the units the sources publish. Not normalized — compare within one jurisdiction.
  - `event_count` integer
  - `precipitation` string
  - `road_surface` string

---

[API](https://skmtc.net/road511/apis/road511-traffic-api.md) · [All operations](https://skmtc.net/road511/apis/road511-traffic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/road511/road511-traffic-api/versions/39a088b9c155/schema)
