Changes between Version 4 and Version 5 of WasteCollectionTabletAPI


Ignore:
Timestamp:
Nov 4, 2021 3:14:00 PM (3 years ago)
Author:
tolix
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WasteCollectionTabletAPI

    v4 v5  
    184184Ответ:
    185185{{{
    186 {"routes": [{"platforms": 41, "num": "20211019T0330-AA7044
    187 OO", "id": 1033710, "itinerary": null, "wastebins": 84}, {"platforms": 167, "num": "20211019T0400-AA7041OO", "id": 1033722, "itinerary": nu
    188 ll, "wastebins": 248}, {"platforms": 55, "num": "20211019T0400-AA9180XE", "id": 1033723, "itinerary": null, "wastebins": 111}, {"platforms"
    189 : 5, "num": "20211019T0400-AA9183XE", "id": 1033721, "itinerary": null, "wastebins": 10}, {"platforms": 86, "num": "20211019T0405-AA5897BP"
    190 , "id": 1033711, "itinerary": null, "wastebins": 136}, {"platforms": 77, "num": "20211020T0400-AA7041OO", "id": 1033727, "itinerary": null,
    191  "wastebins": 131}, {"platforms": 1, "num": "20211020T0400-AA9183XE", "id": 1033729, "itinerary": null, "wastebins": 2}, {"platforms": 108,
    192  "num": "20211020T0600-AA5895BP", "id": 1033720, "itinerary": null, "wastebins": 222}, {"platforms": 38, "num": "20211020T0800-AA7044OO", "
    193 id": 1033724, "itinerary": null, "wastebins": 78}, {"platforms": 46, "num": "20211021T0500-AA7044OO", "id": 1033728, "itinerary": null, "wa
    194 stebins": 85}, {"platforms": 77, "num": "20211021T0800-AA5895BP", "id": 1033730, "itinerary": null, "wastebins": 125}], "success": true}
     186{
     187  "routes": [
     188    {
     189      "platforms": 41,
     190      "num": "20211019T0330-AA7044OO",
     191      "id": 1033710,
     192      "itinerary": null,
     193      "wastebins": 84
     194    },
     195    {
     196      "platforms": 167,
     197      "num": "20211019T0400-AA7041OO",
     198      "id": 1033722,
     199      "itinerary": null,
     200      "wastebins": 248
     201    },
     202    {
     203      "platforms": 55,
     204      "num": "20211019T0400-AA9180XE",
     205      "id": 1033723,
     206      "itinerary": null,
     207      "wastebins": 111
     208    },
     209    {
     210      "platforms": 5,
     211      "num": "20211019T0400-AA9183XE",
     212      "id": 1033721,
     213      "itinerary": null,
     214      "wastebins": 10
     215    },
     216    {
     217      "platforms": 86,
     218      "num": "20211019T0405-AA5897BP",
     219      "id": 1033711,
     220      "itinerary": null,
     221      "wastebins": 136
     222    },
     223    {
     224      "platforms": 77,
     225      "num": "20211020T0400-AA7041OO",
     226      "id": 1033727,
     227      "itinerary": null,
     228      "wastebins": 131
     229    },
     230    {
     231      "platforms": 1,
     232      "num": "20211020T0400-AA9183XE",
     233      "id": 1033729,
     234      "itinerary": null,
     235      "wastebins": 2
     236    },
     237    {
     238      "platforms": 108,
     239      "num": "20211020T0600-AA5895BP",
     240      "id": 1033720,
     241      "itinerary": null,
     242      "wastebins": 222
     243    },
     244    {
     245      "platforms": 38,
     246      "num": "20211020T0800-AA7044OO",
     247      "id": 1033724,
     248      "itinerary": null,
     249      "wastebins": 78
     250    },
     251    {
     252      "platforms": 46,
     253      "num": "20211021T0500-AA7044OO",
     254      "id": 1033728,
     255      "itinerary": null,
     256      "wastebins": 85
     257    },
     258    {
     259      "platforms": 77,
     260      "num": "20211021T0800-AA5895BP",
     261      "id": 1033730,
     262      "itinerary": null,
     263      "wastebins": 125
     264    }
     265  ],
     266  "success": true
     267}
    195268}}}
    196269
     
    204277Запрос:
    205278{{{
    206 {"event":"ROUTE_START","driver_id":1012651,"loader_id":1012652,"route_id":1033710,"date":1634810020725,"device_id":"1789fa18ad90ba55"}
    207 }}}
    208 
    209 Ответ:
    210 {{{
    211 {"skipped": [], "trip_id": 1033731, "success": true}
    212 }}}
    213 
    214 
    215 === Событие "Приступили к уборке" ===
    216 
    217 Запрос:
    218 {{{
    219 {"event":"ON_SHIFT","route_id":1033710,"device_id":"1789fa18ad90ba55"}
     279{
     280  "event": "ROUTE_START",
     281  "driver_id": 1012651,
     282  "loader_id": 1012652,
     283  "route_id": 1033710,
     284  "date": 1634810020725,
     285  "device_id": "1789fa18ad90ba55"
     286}
     287}}}
     288
     289Ответ:
     290{{{
     291{
     292  "skipped": [],
     293  "trip_id": 1033731,
     294  "success": true
     295}
     296}}}
     297
     298
     299=== Событие "Приступил к уборке" ===
     300
     301Запрос:
     302{{{
     303{
     304  "event": "ON_SHIFT",
     305  "route_id": 1033710,
     306  "device_id": "1789fa18ad90ba55"
     307}
    220308}}}
    221309
     
    229317Запрос:
    230318{{{
    231 {"event":"GO_TO_GARAGE","route_id":1033710,"device_id":"1789fa18ad90ba55"}
     319{
     320  "event": "GO_TO_GARAGE",
     321  "route_id": 1033710,
     322  "device_id": "1789fa18ad90ba55"
     323}
    232324}}}
    233325
     
    241333Запрос:
    242334{{{
    243 {"event":"GO_TO_COLLECTION_SITE","route_id":1033722,"device_id":"1789fa18ad90ba55"}
     335{
     336  "event": "GO_TO_COLLECTION_SITE",
     337  "route_id": 1033722,
     338  "device_id": "1789fa18ad90ba55"
     339}
    244340}}}
    245341
     
    254350Запрос:
    255351{{{
    256 {"event":"GO_TO_SERVICE","route_id":1033722,"device_id":"1789fa18ad90ba55"}
     352{
     353  "event": "GO_TO_SERVICE",
     354  "route_id": 1033722,
     355  "device_id": "1789fa18ad90ba55"
     356}
    257357}}}
    258358
     
    267367Запрос:
    268368{{{
    269 {"event":"PLATFORM_LOADED","platform_id":1025030,"route_id":1032188,"count":2,"device_id":"29e199b8401de077"}
     369{
     370  "event": "PLATFORM_LOADED",
     371  "platform_id": 1025030,
     372  "route_id": 1032188,
     373  "count": 2,
     374  "device_id": "29e199b8401de077"
     375}
    270376}}}
    271377
     
    282388Запрос:
    283389{{{
    284 {"lat":49.82279963,"lng":30.06916007,"device_id":"29e199b8401de077"}
     390{
     391  "lat": 49.82279963,
     392  "lng": 30.06916007,
     393  "device_id": "29e199b8401de077"
     394}
    285395}}}
    286396