Stay organized with collections
Save and categorize content based on your preferences.
Waze accepts feed data for both real-time or planned traffic incidents,
including hazards on the road, constructions, and more. Incidents don’t
affect real-time navigation, they only alert drivers.
Incident examples
The following examples show a single incident in XML and JSON formats:
XML incident
The following is an example of a feed file containing a single incident in XML format:
<incidents>
<incident id="101">
<type>HAZARD</type>
<subtype>HAZARD_ON_ROAD_OBJECT</subtype>
<polyline>51.510090 -0.006902 51.509142 -0.006564 51.506291 -0.003640 51.503796 0.001051 51.499218 0.001687 51.497365 0.002020</polyline>
<street>NW 12th St</street>
<starttime>2024-12-07T09:00:00+01:00</starttime>
<endtime>2024-12-07T23:00:00+01:00</endtime>
<description>Closure on I-95 NB due to construction</description>
<direction>BOTH_DIRECTIONS</direction>
</incident>
</incidents>
JSON incident
The following is an example of a single incident in JSON format:
{
"incidents": [
{
"incident": {
"id": "101",
"type": "HAZARD",
"subtype": "HAZARD_ON_ROAD",
"polyline": "51.510090 -0.006902 51.509142 -0.006564 51.506291 -0.003640 51.503796 0.001051 51.499218 0.001687 51.497365 0.002020",
"street": "NW 12th St",
"starttime": "2024-06-07T09:00:00+01:00",
"endtime": "2024-04-07T23:00:00+01:00",
"description": " Closure on I-95 NB due to construction",
"direction": "BOTH_DIRECTIONS"
}
}
]
}
The following examples show an entire incident feed file in both XML and
JSON formats:
XML feed file
The following is an example of a complete incident feed file in XML format:
<?xml version="1.0" ?>
<incidents xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.gstatic.com/road-incidents/cifsv2.xsd">
<incident id="1234">
<creationtime>2024-07-12T00:00:00-05:00</creationtime>
<description>Major Bridge Replacement</description>
<street>I-71</street>
<direction>BOTH_DIRECTIONS</direction>
<polyline>39.4147140554 -84.0911348964 39.4236465485 -84.0910722875 39.4236695805 -84.1239525079</polyline>
<starttime>2024-07-12T00:00:00-05:00</starttime>
<endtime>2024-12-31T00:00:00-05:00</endtime>
<type>HAZARD</type>
<subtype>HAZARD_ON_ROAD_CONSTRUCTION</subtype>
</incident>
<incident id="1235">
<creationtime>2024-04-25T00:00:00-05:00</creationtime>
<updatetime>2024-11-02T00:00:00-05:00</updatetime>
<description>Furniture fallen from a vehicle on the road</description>
<street>BALES RD</street>
<polyline>-84.6517482702 39.1562047924 -84.6515950347 39.1563610529 -84.6505661241 39.1572514708 -84.6502381133 39.1575875208</polyline>
<starttime>2024-04-25T00:00:00-05:00</starttime>
<type>HAZARD</type>
</incident>
<incident id="1236">
<creationtime>2024-07-01T00:10:12-05:00</creationtime>
<description>Accident involving tractor</description>
<street>BRIDGETOWN RD</street>
<direction>ONE_DIRECTION</direction>
<polyline>39.1562047924 -84.6517482702 39.1562047924 -84.6517482702</polyline>
<type>ACCIDENT</type>
</incident>
</incidents>
JSON feed file
The following is an example of a complete incident feed file in JSON format:
{
"incidents": [
{
"id": "1234",
"type": "HAZARD",
"subtype": "HAZARD_ON_ROAD_CONSTRUCTION",
"description": "Major Bridge Replacement",
"street": "I-71",
"direction": "BOTH_DIRECTIONS",
"polyline": "39.4147140554 -84.0911348964 39.4236465485 -84.0910722875 39.4236695805 -84.1239525079",
"creationtime": "2024-07-12T00:00:00-05:00",
"starttime": "2024-07-12T00:00:00-05:00",
"endtime": "2024-12-31T00:00:00-05:00"
},
{
"id": "1235",
"type": "HAZARD",
"description": "Furniture fallen from a vehicle on the road",
"street": "BALES RD",
"polyline": "-84.6517482702 39.1562047924 -84.6515950347 39.1563610529 -84.6505661241 39.1572514708 -84.6502381133 39.1575875208 ",
"starttime": "2024-04-25T00:00:00-05:00",
"creationtime": "2024-04-25T00:00:00-05:00",
"updatetime": "2024-04-26T00:00:00-05:00"
},
{
"id": "1236",
"type": "ACCIDENT",
"description": "Accident involving tractor",
"street": "BRIDGETOWN RD",
"direction": "ONE_DIRECTION",
"polyline": "39.1562047924 -84.6517482702 39.1562047924 -84.6517482702",
"starttime": "2024-06-25T00:00:00-05:00",
"creationtime": "2024-06-01T00:10:12-05:00"
}
]
}
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["\u003cp\u003eWaze uses incident data feeds to alert drivers about hazards, construction, and other real-time or planned traffic incidents, without impacting navigation.\u003c/p\u003e\n"],["\u003cp\u003eIncident data can be provided in either XML or JSON format, containing details such as incident type, location, description, and timeframe.\u003c/p\u003e\n"],["\u003cp\u003eExamples of single incidents and complete incident feed files in both XML and JSON formats are provided for reference and implementation guidance.\u003c/p\u003e\n"],["\u003cp\u003eA detailed specification of the CIFS tags used in the incident data can be found in the linked CIFS specification document.\u003c/p\u003e\n"]]],["Waze uses feed data to report real-time or planned incidents like road hazards and constructions, which alert drivers but do not affect navigation. Incidents are detailed with a unique ID, type, subtype, polyline coordinates, street name, start/end times, description, and direction. Data is shown in XML and JSON formats, both single incident examples and complete feed files, including creation and update timestamps. The feed provides a way to share details about incidents that impact traffic.\n"],null,["Incident information\n====================\n\nWaze accepts feed data for both real-time or planned traffic incidents,\nincluding hazards on the road, constructions, and more. Incidents don't\naffect real-time navigation, they only alert drivers.\n\n#### For a detailed specification of the CIFS tags see [CIFS specification](../data-feed/cifs-specification)\n\nIncident examples\n-----------------\n\nThe following examples show a single incident in XML and JSON formats: \n\n### XML incident\n\nThe following is an example of a feed file containing a single incident in XML format: \n\n```gdscript\n\u003cincidents\u003e\n \u003cincident id=\"101\"\u003e\n \u003ctype\u003eHAZARD\u003c/type\u003e\n \u003csubtype\u003eHAZARD_ON_ROAD_OBJECT\u003c/subtype\u003e\n \u003cpolyline\u003e51.510090 -0.006902 51.509142 -0.006564 51.506291 -0.003640 51.503796 0.001051 51.499218 0.001687 51.497365 0.002020\u003c/polyline\u003e\n \u003cstreet\u003eNW 12th St\u003c/street\u003e\n \u003cstarttime\u003e2024-12-07T09:00:00+01:00\u003c/starttime\u003e\n \u003cendtime\u003e2024-12-07T23:00:00+01:00\u003c/endtime\u003e\n \u003cdescription\u003eClosure on I-95 NB due to construction\u003c/description\u003e\n \u003cdirection\u003eBOTH_DIRECTIONS\u003c/direction\u003e\n \u003c/incident\u003e\n\u003c/incidents\u003e\n```\n\n### JSON incident\n\nThe following is an example of a single incident in JSON format: \n\n```gdscript\n{\n \"incidents\": [\n {\n \"incident\": {\n \"id\": \"101\",\n \"type\": \"HAZARD\",\n \"subtype\": \"HAZARD_ON_ROAD\",\n \"polyline\": \"51.510090 -0.006902 51.509142 -0.006564 51.506291 -0.003640 51.503796 0.001051 51.499218 0.001687 51.497365 0.002020\",\n \"street\": \"NW 12th St\",\n \"starttime\": \"2024-06-07T09:00:00+01:00\",\n \"endtime\": \"2024-04-07T23:00:00+01:00\",\n \"description\": \" Closure on I-95 NB due to construction\",\n \"direction\": \"BOTH_DIRECTIONS\"\n }\n }\n ]\n}\n```\n\nThe following examples show an entire incident feed file in both XML and\nJSON formats: \n\n### XML feed file\n\nThe following is an example of a complete incident feed file in XML format: \n\n```carbon\n\u003c?xml version=\"1.0\" ?\u003e\n\u003cincidents xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\nxsi:noNamespaceSchemaLocation=\"http://www.gstatic.com/road-incidents/cifsv2.xsd\"\u003e\n \u003cincident id=\"1234\"\u003e\n \u003ccreationtime\u003e2024-07-12T00:00:00-05:00\u003c/creationtime\u003e\n \u003cdescription\u003eMajor Bridge Replacement\u003c/description\u003e\n \u003cstreet\u003eI-71\u003c/street\u003e\n \u003cdirection\u003eBOTH_DIRECTIONS\u003c/direction\u003e\n \u003cpolyline\u003e39.4147140554 -84.0911348964 39.4236465485 -84.0910722875 39.4236695805 -84.1239525079\u003c/polyline\u003e\n \u003cstarttime\u003e2024-07-12T00:00:00-05:00\u003c/starttime\u003e\n \u003cendtime\u003e2024-12-31T00:00:00-05:00\u003c/endtime\u003e\n \u003ctype\u003eHAZARD\u003c/type\u003e\n \u003csubtype\u003eHAZARD_ON_ROAD_CONSTRUCTION\u003c/subtype\u003e\n \u003c/incident\u003e\n \u003cincident id=\"1235\"\u003e\n \u003ccreationtime\u003e2024-04-25T00:00:00-05:00\u003c/creationtime\u003e\n \u003cupdatetime\u003e2024-11-02T00:00:00-05:00\u003c/updatetime\u003e\n \u003cdescription\u003eFurniture fallen from a vehicle on the road\u003c/description\u003e\n \u003cstreet\u003eBALES RD\u003c/street\u003e\n \u003cpolyline\u003e-84.6517482702 39.1562047924 -84.6515950347 39.1563610529 -84.6505661241 39.1572514708 -84.6502381133 39.1575875208\u003c/polyline\u003e\n \u003cstarttime\u003e2024-04-25T00:00:00-05:00\u003c/starttime\u003e\n \u003ctype\u003eHAZARD\u003c/type\u003e\n \u003c/incident\u003e\n \u003cincident id=\"1236\"\u003e\n \u003ccreationtime\u003e2024-07-01T00:10:12-05:00\u003c/creationtime\u003e\n \u003cdescription\u003eAccident involving tractor\u003c/description\u003e\n \u003cstreet\u003eBRIDGETOWN RD\u003c/street\u003e\n \u003cdirection\u003eONE_DIRECTION\u003c/direction\u003e\n \u003cpolyline\u003e39.1562047924 -84.6517482702 39.1562047924 -84.6517482702\u003c/polyline\u003e\n \u003ctype\u003eACCIDENT\u003c/type\u003e\n \u003c/incident\u003e\n\u003c/incidents\u003e\n```\n\n### JSON feed file\n\nThe following is an example of a complete incident feed file in JSON format: \n\n```carbon\n{\n \"incidents\": [\n {\n \"id\": \"1234\",\n \"type\": \"HAZARD\",\n \"subtype\": \"HAZARD_ON_ROAD_CONSTRUCTION\",\n \"description\": \"Major Bridge Replacement\",\n \"street\": \"I-71\",\n \"direction\": \"BOTH_DIRECTIONS\",\n \"polyline\": \"39.4147140554 -84.0911348964 39.4236465485 -84.0910722875 39.4236695805 -84.1239525079\",\n \"creationtime\": \"2024-07-12T00:00:00-05:00\",\n \"starttime\": \"2024-07-12T00:00:00-05:00\",\n \"endtime\": \"2024-12-31T00:00:00-05:00\"\n },\n {\n \"id\": \"1235\",\n \"type\": \"HAZARD\",\n \"description\": \"Furniture fallen from a vehicle on the road\",\n \"street\": \"BALES RD\",\n \"polyline\": \"-84.6517482702 39.1562047924 -84.6515950347 39.1563610529 -84.6505661241 39.1572514708 -84.6502381133 39.1575875208 \",\n \"starttime\": \"2024-04-25T00:00:00-05:00\",\n \"creationtime\": \"2024-04-25T00:00:00-05:00\",\n \"updatetime\": \"2024-04-26T00:00:00-05:00\"\n },\n {\n \"id\": \"1236\",\n \"type\": \"ACCIDENT\",\n \"description\": \"Accident involving tractor\",\n \"street\": \"BRIDGETOWN RD\",\n \"direction\": \"ONE_DIRECTION\",\n \"polyline\": \"39.1562047924 -84.6517482702 39.1562047924 -84.6517482702\",\n \"starttime\": \"2024-06-25T00:00:00-05:00\",\n \"creationtime\": \"2024-06-01T00:10:12-05:00\"\n }\n ]\n}\n```"]]