Objective:
The objective of the interface is to transmit the current parking lot and gate situation to the Swarco system in order to select the appropriate scenario for signage there.
Interface:
To implement this, two cases need to be considered:
1. A user changes parking lot or gate states via the dashboard in NUNAV Venues.
The information direction is Graphmasters -> Swarco
2. The Swarco system starts up and requires the initial configuration.
The information direction is Swarco -> Graphmasters
1. Dashboard Changes to Swarco
The message contains the current state of the parking areas and gates with the respective roles for the adjusted event.
Below is an example of such a message:
{
"eventId": "GOifpTlWQjqbxNSw",
"eventName": "FSB 2021",
"configuration": {
"PODIO_1105956034": {
"id": "PODIO_1105956034",
"name": "Parkdeck",
"open": true,
"capacity": 750,
"used": 0,
"gates": {
"FGdetQMdFuwUIwFp": {
"id": "FGdetQMdFuwUIwFp",
"name": "Gate D (Koelnmesse)",
"open": true
},
"JREVAiNdUqXrocTv": {
"id": "JREVAiNdUqXrocTv",
"name": "Gate S (Koelnmesse)",
"open": false
},
"NtOKQDXuTzZvPffC": {
"id": "NtOKQDXuTzZvPffC",
"name": "Gate F (Koelnmesse)",
"open": false
},
"QDVihYZhiMaZtaJo": {
"id": "QDVihYZhiMaZtaJo",
"name": "Gate P16 (Koelnmesse)",
"open": false
},
"ReUmfEzVTxZbprmm": {
"id": "ReUmfEzVTxZbprmm",
"name": "Gate B (Koelnmesse)",
"open": false
},
"RivwndNWWPSOXeKf": {
"id": "RivwndNWWPSOXeKf",
"name": "Gate H (Koelnmesse)",
"open": false
},
"SuSODJKUsDepINeQ": {
"id": "SuSODJKUsDepINeQ",
"name": "Gate T (Koelnmesse)",
"open": false
},
"VSnbyLCPppXrzQpQ": {
"id": "VSnbyLCPppXrzQpQ",
"name": "Gate E (Koelnmesse)",
"open": false
},
"VpRJCEUshcmMtluK": {
"id": "VpRJCEUshcmMtluK",
"name": "Gate Passage 4 -10",
"open": false
},
"aUPtJLRLrLrCqCSN": {
"id": "aUPtJLRLrLrCqCSN",
"name": "Gate C (Koelnmesse)",
"open": false
},
"nNsqqOvEYhMLexai": {
"id": "nNsqqOvEYhMLexai",
"name": "Gate Boulevard (Koelnmesse)",
"open": false
},
"nZIWnnCrfTwWZvKU": {
"id": "nZIWnnCrfTwWZvKU",
"name": "Gate A (Koelnmesse)",
"open": false
},
"pglSfzQyVfPtCwdQ": {
"id": "pglSfzQyVfPtCwdQ",
"name": "Gate H (Truck)",
"open": false
},
"vYThUTnAvsDRBFrq": {
"id": "vYThUTnAvsDRBFrq",
"name": "Gate CC-East (Koelnmesse)",
"open": false
}
},
"roles": [
"AUSSTELLER",
"DISABLED",
"VIP",
"PRESSE",
"BESUCHER"
]
}
}
}
2. Swarco startup
Both an endpoint is provided to get all available events and to get the configuration for each of these events.
2.1 Query all events
Request:
curl GET 'https://traffic-management.graphmasters.net/bff/v2/events/metadata' \
--header 'Authorization: api-key {api-key}'
Response:
[
{
"id": "EKblLuzrhlxjiaQQ",
"lastModified": 1635860142,
"title": "Parking FC Viktoria Köln",
"location": {
"lat": 50.94412962974954,
"lng": 7.030263303392786
},
"start": 1638104400,
"end": 1638118800,
"routingStart": 1635508740,
"venueId": "PODIO_1325815008",
"routingFallback": {
"lat": 50.94411446807979,
"lng": 7.0310172286164345
},
"qrCodeLink": "https://www.nunav.to/events/EKblLuzrhlxjiaQQ",
"qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEAAQMAAABmvDolAAAABlBMVEX///8AAABVwtN+AAAB/klEQVR42uyYMbLkIAxE20VAyBE4Cjcb2zfjKByBkIByb0nYO/za+clGI5cVzdgvkSVaLfDEE0/8X6wk2WIGsJDsvrwQ5BnvBcibAawNiRQgny/sAI7cW2SXP4Ed8UDIZLEIZCCOCsXNMOAqlobk2m9pGge0J4EeytL0SB2fmvbbgVMfeigvXyXNvX8UkK8GRqg+iLx1z+2TpH87wJp2ltQDdzI7lqVLy73TvAWwdqQNcfwNPCfT3JMWAIg+sCRSypgE6IHw7+9gAlBFiBmhyCGTYpH5uBK3AqhIiz7wAJKYHMe8tLjdCxDj4JnVOCCxRTlgc09aAKSEu0xUac0K+LKwpqknjQA1Hb4kaLHQfYH+/FssG4CriZJmj
Comments
0 comments
Please sign in to leave a comment.