Real-time Parking Availability (RTA) RabbitMQ Group Availability API is capable of sending updates about parking occupancy with its a calculated summary. When you use this API, you are getting full 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 | ||
---|---|---|
| ||
{ "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 } } |
where:
timestamp
- a time of a message generation ;timegroup_id
- an ID of a group (parking);parking group idgroup_custom_id
- a user-defined ID of a parking group(parking);level_id
- an ID identified of a level (an object which describes parking floor);floor_number
- a parking floor ;numberpositions_availability
- a list of parking spaces in a parking ( group ) with their IDs, geo-locations and occupancy statuses;summary
- an object which describes a number of parking spaces inside of parking and a number of occupied and vacant spaces.