Bnaya / anyway-data-service

Anyway data service
1 stars 1 forks source link

Save irregularities #2

Closed Bnaya closed 5 years ago

Bnaya commented 5 years ago

We are saving alerts and jams Lets save also irregularities

example data on first comment.

https://il-georss.waze.com/rtserver/web/TGeoRSS?tk=ccp_partner&ccp_partner_name=The%20Public%20Knowledge%20Workshop&format=JSON&types=traffic,alerts,irregularities&polygon=33.717000,32.547000;34.722000,33.004000;35.793000,33.331000;35.914000,32.953000;35.750000,32.723000;35.395000,31.084000;34.931000,29.473000;33.717000,32.547000;33.717000,32.547000

Bnaya commented 5 years ago
[
  {
    "country": "IL",
    "nThumbsUp": 0,
    "updateDate": "Mon Jul 29 17:48:39 +0000 2019",
    "trend": -1,
    "line": [
      {
        "x": 35.334056,
        "y": 31.15197
      },
      {
        "x": 35.333811,
        "y": 31.151189
      },
      {
        "x": 35.333756,
        "y": 31.150943
      },
      {
        "x": 35.333743,
        "y": 31.150815
      },
      {
        "x": 35.333781,
        "y": 31.150625
      },
      {
        "x": 35.333965,
        "y": 31.150021
      },
      {
        "x": 35.334044,
        "y": 31.149717
      },
      {
        "x": 35.334194,
        "y": 31.148975
      },
      {
        "x": 35.334244,
        "y": 31.14879
      },
      {
        "x": 35.334345,
        "y": 31.148559
      },
      {
        "x": 35.334492,
        "y": 31.148356
      },
      {
        "x": 35.335164,
        "y": 31.14769
      },
      {
        "x": 35.335244,
        "y": 31.14759
      },
      {
        "x": 35.33534,
        "y": 31.147427
      },
      {
        "x": 35.335695,
        "y": 31.146619
      },
      {
        "x": 35.335783,
        "y": 31.146452
      },
      {
        "x": 35.335852,
        "y": 31.146347
      },
      {
        "x": 35.335945,
        "y": 31.146259
      },
      {
        "x": 35.335999,
        "y": 31.146226
      },
      {
        "x": 35.336113,
        "y": 31.146172
      },
      {
        "x": 35.336234,
        "y": 31.146141
      },
      {
        "x": 35.33636,
        "y": 31.146133
      },
      {
        "x": 35.336485,
        "y": 31.146138
      },
      {
        "x": 35.33705,
        "y": 31.146198
      },
      {
        "x": 35.337301,
        "y": 31.146215
      },
      {
        "x": 35.33743,
        "y": 31.14621
      },
      {
        "x": 35.337556,
        "y": 31.146187
      },
      {
        "x": 35.337674,
        "y": 31.146143
      },
      {
        "x": 35.337841,
        "y": 31.146055
      },
      {
        "x": 35.337999,
        "y": 31.145952
      },
      {
        "x": 35.338452,
        "y": 31.145607
      },
      {
        "x": 35.338562,
        "y": 31.145547
      },
      {
        "x": 35.338682,
        "y": 31.145507
      },
      {
        "x": 35.338746,
        "y": 31.145494
      },
      {
        "x": 35.338868,
        "y": 31.145493
      },
      {
        "x": 35.338993,
        "y": 31.145506
      },
      {
        "x": 35.339116,
        "y": 31.145535
      },
      {
        "x": 35.339534,
        "y": 31.145676
      },
      {
        "x": 35.341307,
        "y": 31.146344
      },
      {
        "x": 35.341783,
        "y": 31.146511
      },
      {
        "x": 35.342328,
        "y": 31.146668
      },
      {
        "x": 35.345336,
        "y": 31.147397
      },
      {
        "x": 35.345878,
        "y": 31.147564
      },
      {
        "x": 35.347311,
        "y": 31.148062
      },
      {
        "x": 35.347554,
        "y": 31.148127
      },
      {
        "x": 35.347798,
        "y": 31.148178
      },
      {
        "x": 35.348109,
        "y": 31.14823
      },
      {
        "x": 35.348486,
        "y": 31.148251
      },
      {
        "x": 35.34899,
        "y": 31.148234
      },
      {
        "x": 35.349617,
        "y": 31.148175
      },
      {
        "x": 35.350052,
        "y": 31.148102
      },
      {
        "x": 35.3503,
        "y": 31.148044
      },
      {
        "x": 35.350588,
        "y": 31.147917
      },
      {
        "x": 35.350756,
        "y": 31.147826
      },
      {
        "x": 35.350897,
        "y": 31.147692
      },
      {
        "x": 35.351134,
        "y": 31.147399
      },
      {
        "x": 35.351905,
        "y": 31.146093
      },
      {
        "x": 35.35211,
        "y": 31.145776
      },
      {
        "x": 35.352305,
        "y": 31.145528
      },
      {
        "x": 35.353068,
        "y": 31.144684
      },
      {
        "x": 35.353264,
        "y": 31.144438
      },
      {
        "x": 35.353688,
        "y": 31.143733
      },
      {
        "x": 35.354056,
        "y": 31.143069
      },
      {
        "x": 35.354261,
        "y": 31.142609
      },
      {
        "x": 35.35436,
        "y": 31.142311
      },
      {
        "x": 35.354433,
        "y": 31.14194
      },
      {
        "x": 35.354608,
        "y": 31.140879
      },
      {
        "x": 35.354671,
        "y": 31.140571
      },
      {
        "x": 35.354842,
        "y": 31.139961
      },
      {
        "x": 35.355144,
        "y": 31.138998
      },
      {
        "x": 35.355357,
        "y": 31.138402
      },
      {
        "x": 35.355531,
        "y": 31.137997
      },
      {
        "x": 35.355601,
        "y": 31.137892
      },
      {
        "x": 35.355645,
        "y": 31.137848
      },
      {
        "x": 35.355746,
        "y": 31.137773
      },
      {
        "x": 35.355858,
        "y": 31.137717
      },
      {
        "x": 35.356041,
        "y": 31.137673
      },
      {
        "x": 35.35616,
        "y": 31.137674
      },
      {
        "x": 35.35628,
        "y": 31.137697
      },
      {
        "x": 35.356398,
        "y": 31.137739
      },
      {
        "x": 35.356508,
        "y": 31.137795
      },
      {
        "x": 35.35661,
        "y": 31.137868
      },
      {
        "x": 35.357033,
        "y": 31.138242
      },
      {
        "x": 35.357141,
        "y": 31.138308
      },
      {
        "x": 35.35726,
        "y": 31.138355
      },
      {
        "x": 35.357385,
        "y": 31.13837
      },
      {
        "x": 35.357574,
        "y": 31.138367
      },
      {
        "x": 35.358265,
        "y": 31.138311
      },
      {
        "x": 35.358516,
        "y": 31.138307
      },
      {
        "x": 35.358636,
        "y": 31.138334
      },
      {
        "x": 35.358755,
        "y": 31.138376
      },
      {
        "x": 35.358864,
        "y": 31.138437
      },
      {
        "x": 35.358912,
        "y": 31.138477
      },
      {
        "x": 35.358992,
        "y": 31.138572
      },
      {
        "x": 35.359095,
        "y": 31.138737
      },
      {
        "x": 35.359202,
        "y": 31.138968
      },
      {
        "x": 35.359379,
        "y": 31.139507
      },
      {
        "x": 35.359789,
        "y": 31.140898
      },
      {
        "x": 35.359987,
        "y": 31.141464
      }
    ],
    "detectionDateMillis": 1564420007646,
    "type": "Small",
    "endNode": "צומת זוהר",
    "speed": 23.040000000000003,
    "seconds": 641,
    "startNode": "צומת זוהר",
    "street": "31",
    "jamLevel": 2,
    "id": 24800346,
    "nComments": 0,
    "highway": true,
    "delaySeconds": 400,
    "severity": 5,
    "driversCount": 5,
    "alertsCount": 1,
    "length": 4107,
    "updateDateMillis": 1564422519423,
    "nImages": 0,
    "alerts": [
      {
        "country": "IL",
        "nThumbsUp": 0,
        "reportRating": 5,
        "confidence": 0,
        "reliability": 5,
        "type": "JAM",
        "uuid": "11b97455-d2b4-362c-b51a-2096fcf850fd",
        "roadType": 6,
        "magvar": 86,
        "subtype": "JAM_STAND_STILL_TRAFFIC",
        "street": "31",
        "location": {
          "x": 35.337318,
          "y": 31.146177
        },
        "pubMillis": 1564421185000
      }
    ],
    "detectionDate": "Mon Jul 29 17:06:47 +0000 2019",
    "regularSpeed": 64.18
  }
]