Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Smart message types have a pre-defined template body that cannot be changed. These messages are the results of the Nwave Parking Analytics system. They support the following features:

  • Automatic parking session correction and parking session integrity in the event of message loss

  • Occupancy event deduplication in the event of two occupancies (unmarked bays only)

  • Filtering of extremely short parking sessions (unmarked bays only)

  • Advanced handling of unmarked bay occupanciesAutomatic parking session correction in the event of message loss

  • Easy transition to RabbitMQ protocols (RTA & Parking Sessions) due to identical structure

...

Message Type

Example Request Body

Group Availability

RabbitMQ version

Code Block
languagejson
{
   "timestamp": "2021-01-01T00:00:00.000000+00:00",
   "group_id": 1,
   "project_id": 1,
   "group_custom_id": "Group Custom ID",
   "level_id": null,
   "floor_number": null,
   "positions_availability":[
      {
         "position":{
            "id": 1,
            "network_id":"00000000-0000-0000-0000-000000000001",
            "custom_id": "Custom ID 1",
            "group_inner_id": 1,
            "lat": 52.406063006389,
            "lon": -1.5157277658969
         },
         "occupation_status":"occupied"
      },
      {
         "position":{
            "id": 2,
            "network_id":"00000000-0000-0000-0000-000000000002",
            "custom_id": "Custom ID 2",
            "group_inner_id": 2,
            "lat": 52.406022747069,
            "lon": -1.5157359155385
         },
         "occupation_status":"occupied"
      },
      {
         "position":{
            "id": 3,
            "network_id":"00000000-0000-0000-0000-000000000003",
            "custom_id": "Custom ID 3",
            "group_inner_id": 3,
            "lat": 52.406101689254,
            "lon": -1.515721405201
         },
         "occupation_status":"n/a"
      }
   ],
   "summary":{
      "total": 3,
      "occupied": 2,
      "available": 0,
      "undefined": 1
   }
}

Parking Session

RabbitMQ version

Code Block
languagejson
{
   "parking_session_uuid": "d8f7d4b3-a26c-4921-a488-489de273bcf6",
   "involved_devices":[
      {
         "device_id": "100AA",
         "hardware_type": "Sparkit Surface V3.9",
         "position":{
            "network_id":"00000000-0000-0000-0000-0000000100aa",
            "custom_id": null,
            "latitude": 52.40602,
            "longitude": -1.5157359,
            "group":{
               "id": 1,
               "type": "marked_spaces",
               "name": "Group Name 1",
               "custom_id": "Group Custom ID",
               "zone_id": 1,
               "level_id": null,
               "floor_number": null,
               "zone":{
                  "id": 1,
                  "project_id": 1
               }
            },
            "group_inner_id":1
         }
      }
   ],
   "correction_counter": 0,
   "session_start":{
      "event_time":"2021-01-01T00:00:00.000000+00:00",
      "delta_time_sec": 0,
      "message_trace_ids":[
         "d8cd1146-21f7-3906-21e4-8f55534f6573"
      ]
   },
   "session_end": {
      "event_time": "2021-01-01T01:00:00.000000+00:00",
      "delta_time_sec": 0,
      "message_trace_ids": [
          "71bfb22e-3569-d7c1-26fd-a2a0d0febb7a"
      ],
    }
}

...