Export Traffic Violation Report
A consolidated report about traffic rule violations can be exported according to user-defined criteria, such as the name of a crossroads, vehicle list, etc., and automatically send it to a pre-defined URL in the form of a JSON file. The recipient of the report might be an external application, e.g., for law enforcement, geo-referenced analysis of traffic rule violation statistics or any other.
The information provided in the report is comprehensive and detailed enough for law enforcement to
undertake appropriate legal actions against traffic offenders, including all relevant snapshots.
The output file is an array of JSON descriptors of violation events, each of which has the form:
{
"c_source_org": 2,
"source_id": "24145286341509",
"zone_id": 37,
"cameras": [
99,
98
],
"zone_name": "...",
"au_place": "...",
"au_lati": "53.9492007425645",
"au_long": "27.596972286701206",
"c_crime_type": "...",
"au_mark": 2637,
"au_vehicle": "car",
"transp_num": "5159HT5",
"au_country": 112,
"au_life": "05.04.2019 13:21:45",
"fix_date": "05.04.2019 13:27:06",
"a1": "base64",
"a2": "base64",
"a3": "base64",
"a4": "base64",
"a5": "base64",
"i1": "base64",
"p1": "base64"
}
- On the Settings — Export of traffic violations page ...,
- Enter:
- Time windows are shown in the time zone of the account that has the Traffic violation export task page open. Set up time windows, which means that only violations will be exported, time-stamped within the selected time windows on the selected days of the week.
- Enter the URL to send the report to.
- Click Save.
- The newly created task will then appear on the task list on the Settings — Export of traffic violations page. On the three-dot menu, click Enable as shown to run the export.
...click "+" to open the Traffic violation export task form.
A task is a container for user-defined information relevant to the export, such as what kind of violations to export, violation locations, time stamps and more.
Task name: the name of the task
Filters : violation type, road object, and tags to export.
Exceptions : vehicle list names: violations by vehicles on these lists will not be reported.
Under Export settings, specify the report transmission schedule:
Streaming : export of all detected violations in real time
Daily : export once every 24 hours. More options will then appear.
3.1 Switch on the Set up time windows toggler. This lands on the Days of the week tab, where time windows are set up to apply regularly every week, all year round.
3.2 Click Add to select, e.g., "Monday" on the list.
3.3 Edit the time limits of the time window on Monday in the list view (left) or chart view (right) and click Confirm.
3.4 Use the commands in the three-dot menu to do one of the following:
Copy on days - to set up the same time windows on some other days of the week.
Add time window - to add another time window on the same day of the week, which does not overlap with existing windows.
Clear time windows - self-explanatory.
3.5 Repeat the steps above to set up the time windows on other days of the week.
3.6 Go to the Dates tab.
Time windows set up on this tab override those set by days of the week. For instance, the schedule for Mondays is from 6 AM to 6 PM. However, September 15 is a Monday too, and a different schedule may be needed for this particular date (or the export may not be needed on this date at all). Then set it up on the Dates tab.
3.7 Click Add, select a date on this tab and set up time windows by dates in the same way.
Not to run the export on a date at all, click Clear time windows as shown, thus leaving the date blank.
Instant Traffic Violation Reports
If Daily was seleted at step 2 above, 24h countdown begins right after the Enable is clicked. The first report will be ready to download in 24 hours as the diagram below shows in black.
However, a report about traffic violations in the past 24 hours can be exported and downloaded manually at an arbitrary moment in time (red in the diagram). e.g., in the case of an urgent need. To do so, run the Download 24 report as shown - the 24h reports window will shown previous reports ready to download and the current one as "In progress".
As soon as it is ready to download, click Download to do so.
Delivery Confirmation and Retries
After IREX sends an export file to the recipient URL, it acts on the response code returned by the receiving system:
|
Response
Code |
Meaning
|
What IREX Does
|
|---|---|---|
|
200
|
Report accepted
|
Delivery is complete; the file is not sent again.
|
|
400
|
Report rejected
|
Delivery stops; the file is not resent.
|
|
401
|
Not accepted (auth)
|
IREX retries every 5 minutes for up to 30 minutes, or until it receives 200.
|
|
500
|
Reciever error
|
IREX retries every 5 minutes for up to 30 minutes, or until it receives 200.
|
This ensures accepted and explicitly rejected violations are not sent repeatedly, while transient failures (401, 500) are retried automatically within the 30-minute window.
Traffic Violation File Parameters
If needed, a cluster can set the vehicle make values, the vehicle type values, the country code on the license plate, and which frames to export for each violation type.
If the country code on the license plate (au_country) is not recognized, the violation is not exported.
| Parameter | Field Type | Required | Comments |
|---|---|---|---|
c_source_org |
number | Yes | Unique ID for the video analytics system |
source_id |
string | Yes | Unique ID for the traffic violation |
zone_id |
number | No | Unique ID for the control area |
cameras |
array | Yes | IDs of the cameras that captured the violation |
zone_name |
string | Yes | Name of the road object |
au_place |
string | No | Address where the road object is located |
au_lati |
string | Yes | Latitude of the road object |
au_long |
string | Yes | Longitude of the road object |
c_crime_type |
string | Yes | Name of the violation |
au_mark |
number | Yes | Vehicle make. Default values: 2637 – AUDI2658 – BMW4643 – BYD4478 – CHANGAN4102 – CHERY2680 – CHEVROLET2686 – CITROEN2694 – DAF35886 – EXEED2723 – FIAT2725 – FORD2391 – GAZ3910 – GEELY3170 – HAVAL2414 – HONDA2423 – HYUNDAI4037 – INFINITI2432 – IVECO42805 – JAECOO2814 – JAGUAR2816 – JEEP40765 – JETOUR2822 – KAMAZ2829 – KIA4149 – LADA2851 – LAND ROVER2860 – LEXUS38807 – LIXIANG3422 – MAN3426 – MAZ3427 – MAZDA1888 – MERCEDES BENZ3435 – MITSUBISHI3467 – NISSAN38625 – OMODA3475 – OPEL3493 – PEUGEOT3502 – PORSCHE3519 – RENAULT3535 – SCANIA3549 – SKODA3385 – SUBARU3386 – SUZUKI1952 – TESLA4226 – TOYOTA4262 – VOLKSWAGEN4263 – VOLVO34745 – ZEEKR0 – Unknown make, or make recognition is off |
au_vehicle |
string | Yes | Vehicle type. Default values: bus – Buscar – Carmotorbike – Motorcyclepassenger_van – Minivansmall_truck – Light-duty truckmedium_truck – Medium-duty truckheavy_truck – Heavy-duty trucksemi_trailer_truck – Tractor-trailermachinery – Machinerytrailer – Trailer0 – Unknown type, or type recognition is off |
transp_num |
string | Yes | License plate number |
au_country |
number | Yes | Country code on the license plate. Default values: 40 – Austria31 – Azerbaijan51 – Armenia56 – Belgium112 – Belarus100 – Bulgaria826 – United Kingdom348 – Hungary276 – Germany300 – Greece268 – Georgia376 – Israel372 – Ireland724 – Spain380 – Italy398 – Kazakhstan156 – China417 – Kyrgyzstan428 – Latvia440 – Lithuania442 – Luxembourg470 – Malta498 – Moldova492 – Monaco496 – Mongolia528 – Netherlands784 – United Arab Emirates616 – Poland620 – Portugal643 – Russia642 – Romania688 – Serbia703 – Slovakia840 – United States762 – Tajikistan764 – Thailand792 – Turkey860 – Uzbekistan804 – Ukraine246 – Finland250 – France191 – Croatia499 – Montenegro203 – Czech Republic756 – Switzerland75 – Sweden233 – Estonia |
au_life |
string | Yes | Timestamp from before the violation is recorded, in ISO 8601 format |
fix_date |
string | Yes | Timestamp when the violation is recorded, in ISO 8601 format |
a1 |
binary | Yes |
A full frame or part of a frame, depending on the violation type and the cluster settings. Included by default: For Opposite lane violations:
For Overtaking violations:
For Forbidden maneuvers violations:
For a Traffic lights violation:
For Stop line violations:
For Driving without technical allowance violations:
For Driving without insurance violations:
For Illegal stops / parkings violations:
For Failure to yield to pedestrian violations:
For a Railroad crossing lights violation:
For Space mean speed above limit violations:
For a Lane restriction violation:
|
a2 |
binary | Yes |
A full frame or part of a frame, depending on the violation type and the cluster settings. Included by default: For Opposite lane violations:
For Overtaking violations:
For Forbidden maneuvers violations:
For a Traffic lights violation:
For Stop line violations:
For Driving without technical allowance violations:
For Driving without insurance violations:
For Illegal stops / parkings violations:
For Failure to yield to pedestrian violations:
For a Railroad crossing lights violation:
For Space mean speed above limit violations:
For a Lane restriction violation:
|
a3 |
binary | Yes |
A full frame or part of a frame, depending on the violation type and the cluster settings. Included by default: For Opposite lane violations:
For Overtaking violations:
For Forbidden maneuvers violations:
For a Traffic lights violation:
For Stop line violations:
For Driving without technical allowance violations:
For Driving without insurance violations:
For Illegal stops / parkings violations:
For Failure to yield to pedestrian violations:
For a Railroad crossing lights violation:
For Space mean speed above limit violations:
For a Lane restriction violation:
|
a4 |
binary | Yes |
A full frame or part of a frame, depending on the violation type and the cluster settings. Included by default: For Overtaking violations:
For Forbidden maneuvers violations:
For a Traffic lights violation:
For Stop line violations:
For Driving without technical allowance violations:
For Driving without insurance violations:
For Illegal stops / parkings violations:
For a Railroad crossing lights violation:
For every other violation type, the export file omits this field. |
a5 |
binary | Yes |
A full frame or part of a frame, depending on the violation type and the cluster settings. Included by default: For Forbidden maneuvers violations:
For a Traffic lights violation:
For Stop line violations:
For Driving without technical allowance violations:
For Driving without insurance violations:
For Illegal stops / parkings violations:
For Failure to yield to pedestrian violations:
For a Railroad crossing lights violation:
For every other violation type, the export file omits this field. |
i1 |
binary | Yes |
A full frame or part of a frame, depending on the violation type and the cluster settings. Included by default: For Opposite lane violations:
For Overtaking violations:
For Forbidden maneuvers violations:
For a Traffic lights violation:
For Stop line violations:
For Driving without technical allowance violations:
For Driving without insurance violations:
For Illegal stops / parkings violations:
For Failure to yield to pedestrian violations:
For a Railroad crossing lights violation:
For Space mean speed above limit violations:
For a Lane restriction violation:
|
p1 |
binary | Yes |
A full frame or part of a frame, depending on the violation type and the cluster settings. Included by default: For Opposite lane violations:
For Overtaking violations:
For Forbidden maneuvers violations:
For a Traffic lights violation:
For Stop line violations:
For Driving without technical allowance violations:
For Driving without insurance violations:
For Illegal stops / parkings violations:
For Failure to yield to pedestrian violations:
For a Railroad crossing lights violation:
For Space mean speed above limit violations:
For a Lane restriction violation:
|