Versions Compared

Key

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

RabbitMQ Group Availability API is capable of sending updates about parking occupancy with a calculated summary. When you use this API, you are getting complete occupancy info about parking. Nwave cloud calculates the number of occupied and vacant spaces according to parking type, parking sensors health and other secondary data.

RTA Group Availability message structure

Code Block
languagejson
{
  "timestamp": string ISO8601,
  "group_id": integer,
  "group_custom_id": string,
  "level_id": int,
  "floor_number": int,
  "positions_availability": [
    {
      "position": {
        "id": int,
        "network_id": UUID,
        "custom_id": string,
        "group_inner_id": int,
        "lat": real,
        "lon": real
      },
      "occupation_status": string //'occupied' / 'free' / 'n/a'
    }
    ...
  ],
  "summary": {
      "total": int,
      "occupied": int,
      "available": int,
      "undefined": int
  }
}

...