घटना की जानकारी

Waze रीयल-टाइम या प्लान के मुताबिक ट्रैफ़िक की घटनाओं का फ़ीड डेटा स्वीकार करता है. इनमें सड़क पर होने वाले खतरे, निर्माण वगैरह शामिल हैं. इन घटनाओं का, रीयल-टाइम नेविगेशन पर कोई असर नहीं पड़ता. इनसे सिर्फ़ ड्राइवर को चेतावनी मिलती है.

सीआईएफ़एस टैग की पूरी जानकारी के लिए, सीआईएफ़एस की खास बातें देखें

मामले के उदाहरण

यहां दिए गए उदाहरण एक्सएमएल और JSON फ़ॉर्मैट में एक ही घटना को दिखाते हैं:

एक्सएमएल की घटना

एक्सएमएल फ़ॉर्मैट में, एक इंसिडेंट वाली फ़ीड फ़ाइल का उदाहरण यहां दिया गया है:

<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>2017-12-07T09:00:00+01:00</starttime>
    <endtime>2017-12-07T23:00:00+01:00</endtime>
    <description>Closure on I-95 NB due to construction</description>
    <direction>BOTH_DIRECTIONS</direction>
  </incident>
</incidents>

JSON की घटना

JSON फ़ॉर्मैट में, एक घटना का उदाहरण यहां दिया गया है:

{
  "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": "2016-04-07T09:00:00+01:00",
        "endtime": "2016-04-07T23:00:00+01:00",
        "description": " Closure on I-95 NB due to construction",
        "direction": "BOTH_DIRECTIONS"
      }
    }
  ]
}

यहां दिए गए उदाहरणों में एक्सएमएल और JSON, दोनों फ़ॉर्मैट में इंसिडेंट फ़ीड की पूरी फ़ाइल को दिखाया गया है:

एक्सएमएल फ़ीड फ़ाइल

यहां एक्सएमएल फ़ॉर्मैट में, घटना फ़ीड की पूरी फ़ाइल का उदाहरण दिया गया है:

<?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>2017-07-12T00:00:00-05:00</creationtime>
      <description>Major Bridge 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>2017-07-12T00:00:00-05:00</starttime>
      <endtime>2018-12-31T00:00:00-05:00</endtime>
      <type>HAZARD</type>
      <subtype>HAZARD_ON_ROAD_CONSTRUCTION</subtype>
   </incident>
   <incident id="1235">
      <creationtime>2017-04-25T00:00:00-05:00</creationtime>
      <updatetime>2017-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>2017-04-25T00:00:00-05:00</starttime>
      <type>HAZARD</type>
   </incident>
   <incident id="1236">
      <creationtime>2018-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 फ़ीड फ़ाइल

यहां JSON फ़ॉर्मैट में, पूरी घटना फ़ीड फ़ाइल का उदाहरण दिया गया है:

{
  "incidents": [
    {
      "id": "1234",
      "type": "HAZARD",
      "subtype": "HAZARD_ON_ROAD_CONSTRUCTION",
      "description": "Major Bridge Bridge Replacement",
      "street": "I-71",
      "direction": "BOTH_DIRECTIONS",
      "polyline": "39.4147140554 -84.0911348964 39.4236465485 -84.0910722875 39.4236695805 -84.1239525079",
      "creationtime": "2017-07-12T00:00:00-05:00",
      "starttime": "2017-07-12T00:00:00-05:00",
      "endtime": "2018-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": "2017-04-25T00:00:00-05:00",
      "creationtime": "2017-04-25T00:00:00-05:00",
      "updatetime": "2017-11-02T00: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",
      "creationtime": "2018-07-01T00:10:12-05:00"
    }
  ]
}