The document describes methods and data formats used by Nwave's cloud-based API broker to relay preprocessed pre-processed smart parking sensor events to the client's endpoints. The data can be passed with or without authorization.
...
Method: PUT/POST
Template Body:
Code Block | ||
---|---|---|
| ||
{ "device_id": "{device_id}", "position":{ "network_id": "{network_id}", "custom_id": "{custom_id}", "latitude": {latitude}, "longitude": {longitude}, "group_inner_id": {group_inner_id}, "group":{ "id": {group_id}, "name": "{group_name}", "zone_id": {zone_id} } }, "message_type": "user_registration", "message_trace_id": "{message_trace_id}", "occupied": "{"occupied" if parsed["occupation_status"] is True else "free"}", "auth_ble_tag": { "tag_id": "{parsed["user_ID"]}", "event_time": "{iso8601(message_time)}" } } |
Expand | |||||
---|---|---|---|---|---|
| |||||
|
...
|
...
|
Expand | ||
---|---|---|
| ||
|
message_type - message type;
message_trace_id - system message-id;
parking_session_iterator - short serial number of parking session. Iterator (number) is incrementing when new parking session starts (0-7);
new_status occupied- parking occupancy status ("occupied" or "free");
auth_ble_tag
tag_id - an ID of Bluetooth tag which was used for authorization;
event_time - message reception time.